Color.HSV Class
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)
Item Index
Methods
_hsvToRgb
(
String | Array
protected
-
str
-
[toArray]
Parses the HSV string into r, b, g values. Will return an Array of values or an RGB string.
_rgbToHsv
(
String | Array
protected
-
str
-
[toArray]
Parses the RGB string into h, s, v values. Will return an Array of values or an HSV string.