s@rdalya

 

RGBObject

Page history last edited by vozcelik 3 yrs ago


 

RGBObject

(extends Object)


Object Summary

 

This object is a tiny wrapper, which is used to convert hex color values (like #AACCFF) to their RGB equivalents (like rgb(170,204,255)).


Constructor

 

RGBObject(strHex)

 

parameters

strHex - The hex color value to convert.


Methods

 

RGBObject.R()

 

returns

The R (red) component.


RGBObject.G()

 

returns

The G (green) component.


RGBObject.B()

 

returns

The B (blue) component.


RGBObject.toString()

 

return

The CSS-2 String equivalent.


RGBObject.toArray()

 

returns

An Array representation of the object.

See Also

 


Usage Examples

 

Comments (0)

You don't have permission to comment on this page.