Package Exports
- color-functions
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (color-functions) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
color-functions
Color functions for node and browser (via browserify
, webpack
, ...)
Installation
npm install color-functions --save
# or
yarn add color-functions
Usage
// commonjs
const { hex2rgb } = require('color-functions');
// es module
import { hex2rgb, cssColor } from 'color-functions';
import * as cf from 'color-functions';
Available functions
cssColor
: parse a valid css color value to rgba formathex2hsl
hex2rgb
hsl2hsv
hsl2rgb
hsv2hex
hsv2hsl
hsv2rgb
rgb2hex
rgb2hsv
rgba
rgba2hex
rgba2rgb
License
MIT