Class:

(hsl)

Color Color class accepts a CSS color string, rgb, hsl data as the input, manipulate the color, and returns a CSS-compatible color string.

Constructor

new (hsl)

Parameters:
Name Type Description
hsl Object an object of hue, saturation, and lightness values (0.0 to 1.0)
Source:
Example
new Color({
    h: 0.2,
    s: 0.5,
    l: 1
})