JXtension - new Color(redValue, greenValue, blueValue)

Purpose:
Give the user the ability to represent and mutate a 24-bit color as a JavaScript object.

Parameters:

redValue The amount of red that will compose the color.  This value must be an integer greater than or equal to 0 and less than or equal to 255.
greenValue The amount of green that will compose the color.  This value must be an integer greater than or equal to 0 and less than or equal to 255.
blueValue The amount of blue that will compose the color.  This value must be an integer greater than or equal to 0 and less than or equal to 255.

Result:
Constructing a JXtension color in this way yields an object which keeps track of the RGB values.

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

 

See also: