1.0.0 • Published 2 years ago

anony-colors-js v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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

You can check more properties while using this

peace--- thanks for using