Color
Color
Color
Color
Color
Color
Color
Static Private ConverterCalculates RGB color (nomalized). HSL must be normalized.
Calculates HSL Color. RGB must be normalized. http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript
Static Private SanitizerRest ...args: (string | number)[]Rest ...args: any[]Static Private ValidatorCheck a hexa color (without #)
Get this color as a CSS rgb string.
Consult this for details: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
This color as a CSS rgb string.
cssRGB
Color
Get this color as a CSS rgba string.
Consult this for details: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
This color as a CSS rgba string.
cssRGBA
Color
Static makeHEXStatic makeHSLStatic makeRGBStatic parse
Classdesc
A color class, inspired by neolitec's Javascript class. Original found at https://gist.github.com/neolitec/1344610 Thanks to neolitec