The color object stores R G B A color information.
Internally the color is stored as a 32 bit integer.
The range for the colors and alpha is between 0 and 255.
myColor = Color(); //instantiate it
myColor:Set(255,255,255,255); //we just set it to white.
//Or we can save time by doing:
myColor = Color(255,255,255,255);
Color | The color object stores R G B A color information. |
Initialization | |
Color() | |
Color(r,g,b,a) | |
Member Functions | |
GetRed | |
GetGreen | |
GetBlue | |
GetAlpha | |
SetRed | |
SetGreen | |
SetBlue | |
SetAlpha | |
Set | |
-=-=-=-=-=- |
Color(number red, number green, number blue, number alpha)
Creates the object with default values. (everything will be 0)