1.0.1 • Published 7 years ago

color-adjust v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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()