Struct ColorRgba32
Represents a 32-bit RGBA color value without depending on a graphics backend type.
public readonly record struct ColorRgba32 : IEquatable<ColorRgba32>
- Implements
- Inherited Members
Constructors
ColorRgba32(byte, byte, byte, byte)
Represents a 32-bit RGBA color value without depending on a graphics backend type.
public ColorRgba32(byte R, byte G, byte B, byte A = 255)
Parameters
RbyteThe red channel.
GbyteThe green channel.
BbyteThe blue channel.
AbyteThe alpha channel.
Properties
A
The alpha channel.
public byte A { get; init; }
Property Value
B
The blue channel.
public byte B { get; init; }
Property Value
CornflowerBlue
Gets the classic MonoGame/XNA cornflower blue clear color reproduced in engine-owned form.
public static ColorRgba32 CornflowerBlue { get; }
Property Value
G
The green channel.
public byte G { get; init; }
Property Value
R
The red channel.
public byte R { get; init; }
Property Value
Transparent
Gets a fully transparent color.
public static ColorRgba32 Transparent { get; }
Property Value
White
Gets an opaque white color.
public static ColorRgba32 White { get; }