| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

RGBObject

Page history last edited by PBworks 17 years, 12 months 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.