Struct Color32
- Namespace
- BasilEngine.Rendering
- Assembly
- BasilEngine.dll
[Disabled]
public struct Color32
- Inherited Members
Constructors
Color32(byte, byte, byte, byte)
Initializes a new Color32.
public Color32(byte r, byte g, byte b, byte a = 255)
Parameters
rbyteRed component (0-255).
gbyteGreen component (0-255).
bbyteBlue component (0-255).
abyteAlpha component (0-255).
Properties
A
Alpha component of the color.
public byte A { get; set; }
Property Value
B
Blue component of the color.
public byte B { get; set; }
Property Value
Black
Solid black color (0,0,0,255).
public static Color32 Black { get; }
Property Value
Blue
Solid blue color.
public static Color32 Blue { get; }
Property Value
G
Green component of the color.
public byte G { get; set; }
Property Value
Gold
Gold color using 8-bit components.
public static Color32 Gold { get; }
Property Value
Green
Solid green color.
public static Color32 Green { get; }
Property Value
Magenta
Solid magenta color.
public static Color32 Magenta { get; }
Property Value
R
Red component of the color.
public byte R { get; set; }
Property Value
Red
Solid red color.
public static Color32 Red { get; }
Property Value
White
Solid white color (255,255,255,255).
public static Color32 White { get; }
Property Value
Yellow
Solid yellow color.
public static Color32 Yellow { get; }
Property Value
Operators
implicit operator Color32(Color)
public static implicit operator Color32(Color color)
Parameters
colorColorColor with normalized channels.