anony-colors-js
v1.0.0
Published
the color properties
Downloads
2
Readme
Color js properties
Using Node command-line
npm i colour-js
How to use
Reference
const Color = require('colour-js')
const color = new Color("#b9f2ff") //enter any hex code in parameter
color.getName() //get name of hex color code
color.toHexa() //convert to hex
color.toHsl() //convert to hsl
Directly without new keyword
const Color = require('colour-js')
Color.getNearestColor("#b9f2ff") //get shade of color name
Color.hexToRgb("#b9f2ff") //convert to hex