color Module
This module provides the following classes:
This module is a rollup of the following modules:
-
color-base
Color provides static methods for color conversion. Y.Color.toRGB('f00'); // rgb(255, 0, 0) Y.Color.toHex('rgb(255, 255, 0)'); // #ffff00
-
color-harmony
Color Harmony provides methods useful for color combination discovery.
-
color-hsl
Color provides static methods for color conversion to hsl values. Y.Color.toHSL('f00'); // hsl(0, 100%, 50%) Y.Color.toHSLA('rgb(255, 255, 0'); // hsla(60, 100%, 50%, 1)
-
color-hsv
Color provides static methods for color conversion hsv values. Y.Color.toHSV('f00'); // hsv(0, 100%, 100%) Y.Color.toHSVA('rgb(255, 255, 0'); // hsva(60, 100%, 100%, 1)