Table of Contents

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

r byte
g byte
b byte
a byte

Properties

A

Gets the alpha component.

public byte A { get; }

Property Value

byte

B

Gets the blue component.

public byte B { get; }

Property Value

byte

Blue

Gets opaque blue.

public static GravitasDiagnosticColor Blue { get; }

Property Value

GravitasDiagnosticColor

Cyan

Gets opaque cyan.

public static GravitasDiagnosticColor Cyan { get; }

Property Value

GravitasDiagnosticColor

G

Gets the green component.

public byte G { get; }

Property Value

byte

Green

Gets opaque green.

public static GravitasDiagnosticColor Green { get; }

Property Value

GravitasDiagnosticColor

R

Gets the red component.

public byte R { get; }

Property Value

byte

Red

Gets opaque red.

public static GravitasDiagnosticColor Red { get; }

Property Value

GravitasDiagnosticColor

Rgba

Gets the packed RGBA value with red in the most significant byte.

public uint Rgba { get; }

Property Value

uint

White

Gets opaque white.

public static GravitasDiagnosticColor White { get; }

Property Value

GravitasDiagnosticColor

Yellow

Gets opaque yellow.

public static GravitasDiagnosticColor Yellow { get; }

Property Value

GravitasDiagnosticColor