Struct GravitasDiagnosticColor
- Namespace
- Gravitas.Diagnostics
- Assembly
- Gravitas.dll
Engine-agnostic 8-bit RGBA color for diagnostic draw commands.
public readonly struct GravitasDiagnosticColor
- Inherited Members
Constructors
GravitasDiagnosticColor(byte, byte, byte, byte)
Creates a color from red, green, blue, and alpha components.
public GravitasDiagnosticColor(byte r, byte g, byte b, byte a = 255)
Parameters
Properties
A
Gets the alpha component.
public byte A { get; }
Property Value
B
Gets the blue component.
public byte B { get; }
Property Value
Blue
Gets opaque blue.
public static GravitasDiagnosticColor Blue { get; }
Property Value
Cyan
Gets opaque cyan.
public static GravitasDiagnosticColor Cyan { get; }
Property Value
G
Gets the green component.
public byte G { get; }
Property Value
Green
Gets opaque green.
public static GravitasDiagnosticColor Green { get; }
Property Value
R
Gets the red component.
public byte R { get; }
Property Value
Red
Gets opaque red.
public static GravitasDiagnosticColor Red { get; }
Property Value
Rgba
Gets the packed RGBA value with red in the most significant byte.
public uint Rgba { get; }
Property Value
White
Gets opaque white.
public static GravitasDiagnosticColor White { get; }
Property Value
Yellow
Gets opaque yellow.
public static GravitasDiagnosticColor Yellow { get; }