Beta Documentation - Subject to change.

Represents a 4 channel color with red, green, blue, and alpha.

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 ColorCopy Code
      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.

Inheritance Hierarchy

Turbine.Object
  Turbine.UI.Color

See Also