One-color.js

A color object with implicit color space conversion and methods for setting, getting and adjusting any channel in RGB, HSV, HSL and CMYK including alpha

Click me for demo!

Example

new one.color.RGB(.4, .3, .9).
    adjustLightness(+.2). // Implicit conversion to HSL
    setRed(-.1). // Implicit conversion back to RGB
    toHex(); // "#00a6f2"

The code is fully documented, and you can use JSdoc to build the documentation.

Link to documenation (TODO)

This color object runs in your browser and in NodeJS.

Fork me on GitHub
R: G: B:
About Snakelane