color.Color Class
Color functions
Item Index
Attributes
Methods
offsetBrightness
(
String
-
color
-
offset
Return rgb code after hue has been adjusted by a number of degrees
Returns:
offsetHue
(
String
-
color
-
offset
Return rgb code after hue has been adjusted by a number of degrees
Returns:
offsetSaturation
(
String
-
color
-
offset
Return rgb code after hue has been adjusted by a number of degrees
Returns:
rgbObject
(
Object
-
rgbColor
Converts rgb color string to rgb color object
Parameters:
-
rgbColor
String
Returns:
Example:
var c = new ludo.color.Color(); console.log(c.rgbObject('#FFEEDD'); // returns { 'r': 'FF','g' : 'EE', 'b' : 'DD' }