Color Constructor (Single, Single, Single, Single) |
Constructs a color from RGBA values, typically on the range of 0 to 1.
Namespace:
Godot
Assembly:
GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax public Color(
float r,
float g,
float b,
float a = 1f
)
Parameters
- r
- Type: SystemSingle
The color's red component, typically on the range of 0 to 1. - g
- Type: SystemSingle
The color's green component, typically on the range of 0 to 1. - b
- Type: SystemSingle
The color's blue component, typically on the range of 0 to 1. - a (Optional)
- Type: SystemSingle
The color's alpha (transparency) value, typically on the range of 0 to 1. Default: 1.
See Also