HCJ has a standard schema for colors. A Color is an object with all of the following properties:
• nbsp;r :: Number
nbsp; nbsp;
Value from 0 to 255.
• nbsp;g :: Number
nbsp; nbsp;
Value from 0 to 255.
• nbsp;b :: Number
nbsp; nbsp;
Value from 0 to 255.
• nbsp;a :: Number
nbsp; nbsp;
Value from 0 to 1.
The following functions are found in window.hcj.color:
Color
color :: {r: Number?, g: Number?, b: Number?, a: Number?} - gt; Color
Color constructor. r, g, and b values default to 0, and a value defaults to 1.
ColorString
colorString :: Color - gt; String
Color destructor. Takes a color, returns string using rgba format.