Returns a color constructed from integer red, green, blue, and alpha channels.
Each channel should have 8 bits of information ranging from 0 to 255.
Namespace:
Godot
Assembly:
GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax public static Color Color8(
byte r8,
byte g8,
byte b8,
byte a8 = 255
)
Parameters
- r8
- Type: SystemByte
The red component represented on the range of 0 to 255. - g8
- Type: SystemByte
The green component represented on the range of 0 to 255. - b8
- Type: SystemByte
The blue component represented on the range of 0 to 255. - a8 (Optional)
- Type: SystemByte
The alpha (transparency) component represented on the range of 0 to 255.
Return Value
Type:
ColorThe constructed color.
See Also