color-functions
Color functions for node and browser (via browserify
, webpack
, ...)
Installation
npm install color-functions --save# or yarn add color-functions
Usage
// commonjsconst hex2rgb = ; // es module;;
Available functions
cssColor
: parse a valid css color value to rgba formathex2hsl
hex2rgb
hsl2hsv
hsl2rgb
hsv2hex
hsv2hsl
hsv2rgb
rgb2hex
rgb2hsv
rgba
rgba2hex
rgba2rgb
check test for more examples
License
MIT