Global

Methods

Color()

// * Color class accepts an HSL object, manipulates the color, and returns a CSS-compatible color string // * @constructor // * @memberof Color // * @param {Object} hsla - an object of hue, saturation, and lightness values, and an alpha channel value
Source:
Example
new Color({
    h: 0.5,
    s: 1,
    l: 1,
    a: 0.5  // 50% transparent
})