Remarks
A simple color class with the following fields directly accessible in lua script: R, G, B, and A. The color components are number values in the range of 0.0 to 1.0.The red component.The green component.The blue component.The alpha component.
Examples
This example demonstrates the Color class.
Demonstrates a Color | ![]() |
---|---|
newColor = Turbine.UI.Color(); newColor.R = 1.0; newColor.G = 1.0; newColor.B = 0.0; newColor.A = 1.0; blue = Turbine.UI.Color( 0, 0, 1 ); -- Pass the colors to any control to set their colors. |