Table of Contents

Struct ColorRgba32

Namespace
TileWorld.Engine.Render
Assembly
TileWorld.Engine.dll

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

R byte

The red channel.

G byte

The green channel.

B byte

The blue channel.

A byte

The alpha channel.

Properties

A

The alpha channel.

public byte A { get; init; }

Property Value

byte

B

The blue channel.

public byte B { get; init; }

Property Value

byte

CornflowerBlue

Gets the classic MonoGame/XNA cornflower blue clear color reproduced in engine-owned form.

public static ColorRgba32 CornflowerBlue { get; }

Property Value

ColorRgba32

G

The green channel.

public byte G { get; init; }

Property Value

byte

R

The red channel.

public byte R { get; init; }

Property Value

byte

Transparent

Gets a fully transparent color.

public static ColorRgba32 Transparent { get; }

Property Value

ColorRgba32

White

Gets an opaque white color.

public static ColorRgba32 White { get; }

Property Value

ColorRgba32