Syntax
Lua |
---|
function Color:Color(r, g, b); |
Parameters
- r
-
Type:
number
The red component.
- g
-
Type:
number
The green component.
- b
-
Type:
number
The blue component.
Remarks
Initializes a new color from the specified color components. The color components should all be number values in the range of 0.0 to 1.0. The alpha of the new color is set to 1.0.
Examples
Creates a new color.
Creating a Color | ![]() |
---|---|
-- Creates a new color that is blue. local color = Turbine.UI.Color( 0.0, 0.0, 1.0 ); |