float r
The red component of the color, between 0 and 1.

float g
The green component of the color, between 0 and 1.

float b
The blue component of the color, between 0 and 1.

float a
The alpha component of the color, between 0 and 1.

color set255(int red, int green, int blue, int alpha)
Sets the components of the color, using values between 0 and 255.

color set1(float red, float green, float blue, float alpha)
Sets the components of the color, using values between 0 and 1.

color setHex(string)
Sets the components of the color using a six-character hexadecimal color string as used in HTML, eg. FF0000 for pure red.

string getStr1()
Returns the RGBA components of the color as values between 0 and 1, separated by commas.

string getStr255()
Returns the RGBA components of the color as values between 0 and 255, separated by commas.

string getStrHex()
Returns the RGBA components of the color as a six-character hexadecimal color string as used in HTML, eg. FF0000 for pure red.