Script Reference : Color

The Color value is used to specify an RGB color.

Data Members
Name Type Description
r float Red color. Rangle is from 0 to 255.
g float Green color. Rangle is from 0 to 255.
b float Blue color. Rangle is from 0 to 255.
a float Alpha value. Rangle is from 0 to 255.

 

Constructors
Name Description
Color::Color() Creates a Color object and initializes the r, g and b data members to zero.  a is intialized to 255. This is the default constructor.
Color::Color(float,float,float) Creates a Color object using three floats to initialize the r, g and b data members.  a is intialized to 255.
Color::Color(float) Creates a Color object using one float or integer to initialize the r, g and b data members. a is intialized to 255.
Color::Color(Color) Creates a new Color object and copies the data members from another Color object.
Color::Color(float,float,float,float) Creates a Color object using three floats to initialize the r, g and b data members.

 

Methods
Name Return Type Description