Class Colors

Object
   |
   +--Colors

class Colors


Represent a color. Allows for setting and getting color components based on RGV, HSV and HSL color spaces. See also http://en.wikipedia.org/wiki/Color_space
Defined in colors.js


Constructor Summary
Colors()
           
 
Method Summary
 int getBlue()
           Get blue component of color
 int getGreen()
           Get green component of color
 String getHex()
           Get hex value of color
 array getHSL()
           Get hue, saturation and luminosity of color as an array
 int getHue()
           Get hue component of color
 int getHueV()
           Get hue component of color (HSV)
 int getLuminosity()
           Get luminosity component of color
 int getRed()
           Get red component of color
 array getRGB()
           Get red, green and blue component of color as an array
 int getSaturation()
           Get saturation component of color
 int getSaturationV()
           Get saturation component of color (HSV)
 int getValue()
           Get value component of color (HSV)
 int setBlue(b)
           Set the blue component of the color
 int setGreen(g)
           Set the green component of the color
 String setHex(hex)
           Set the color from a hex color code
 int setHue(h)
           Set the hue component of the color
 int setHueV(h)
           Set hue component of the color, using HSV http://en.wikipedia.org/wiki/HSV_color_space
 int setLuminosity(l)
           Set the luminosity component of the color
 int setRed(r)
           Set the red component of the color
 void setRGB(c_arr)
           Set the red, green and blue components of the color
 int setSaturation(s)
           Set the saturation component of the color
 int setSaturationV(s)
           Set the saturation component of the color, using HSV
 int setValue(l)
           Set the value component of the color, using HSV

Constructor Detail

Colors

Colors()

Method Detail

getBlue

int getBlue()

getGreen

int getGreen()

getHex

String getHex()

getHSL

array getHSL()

getHue

int getHue()

getHueV

int getHueV()

getLuminosity

int getLuminosity()

getRed

int getRed()

getRGB

array getRGB()

getSaturation

int getSaturation()

getSaturationV

int getSaturationV()

getValue

int getValue()

setBlue

int setBlue(b)

setGreen

int setGreen(g)

setHex

String setHex(hex)

setHue

int setHue(h)

setHueV

int setHueV(h)

setLuminosity

int setLuminosity(l)

setRed

int setRed(r)

setRGB

void setRGB(c_arr)

setSaturation

int setSaturation(s)

setSaturationV

int setSaturationV(s)

setValue

int setValue(l)


Documentation generated by JSDoc on Thu Oct 30 18:01:10 2008