color-adjust
v1.0.1
Published
Color library that provides functions for manipulating and returning parameters of RGB and HSL color-codes and converts between RGB, hex, and HSL
Downloads
209
Readme
color-adjust
Javascript library for color conversion and channel manipulation of RGB, HEX and HSL
Install
$ npm install color-adjust
Require, Construct, Get
var Color = require('color');
var color = new Color('rgb(186, 218 ,85)');
color.complement();
color.rgb2hex();
Functions
- red()
- green()
- blue()
- hue()
- saturation()
- lightness()
- adjustHue(degrees)
- adjustSaturation(amount)
- adjustLightness(amount)
- grayscale()
- complement()
- rgb2hex(), hex2rgb(), rgb2hsl(), hsl2rgb(), hex2hsl(), hslhex()