JXtension - new Color(rgbColor)

Purpose:
Give the user the ability to represent and mutate a CSS RGB color as a JavaScript object.

Parameters:

rgbColor The RGB values that can be used to represent a color in CSS.  Each number in the RGB format must be an integer greater than or equal to zero but less than or equal to 255. This parameter must be in the following format (replacing the pound signs (#) with valid integers):
RGB(#, #, #)

Result:
Constructing a JXtension color in this way yields an object which contains the RGB color values for the specified RGB color entry.

Example #1:
The following will illustrate how to create a JavaScript (JXtension) color object from a CSS RGB color:

 

See also: