Table of Contents

Struct RgbaByte

Namespace
NeoVeldrid
Assembly
NeoVeldrid.dll

A color stored in four 8-bit unsigned normalized integer values, in RGBA component order.

public struct RgbaByte : IEquatable<RgbaByte>
Implements
Inherited Members

Constructors

RgbaByte(byte, byte, byte, byte)

Constructs a new RgbaByte from the given components.

public RgbaByte(byte r, byte g, byte b, byte a)

Parameters

r byte

The red component.

g byte

The green component.

b byte

The blue component.

a byte

The alpha component.

Fields

A

The alpha component.

public readonly byte A

Field Value

byte

B

The blue component.

public readonly byte B

Field Value

byte

Black

Black (0, 0, 0, 255)

public static readonly RgbaByte Black

Field Value

RgbaByte

Blue

Blue (0, 0, 255, 255)

public static readonly RgbaByte Blue

Field Value

RgbaByte

Clear

Clear (0, 0, 0, 0)

public static readonly RgbaByte Clear

Field Value

RgbaByte

CornflowerBlue

Cornflower Blue (100, 149, 237, 255)

public static readonly RgbaByte CornflowerBlue

Field Value

RgbaByte

Cyan

Cyan (0, 255, 255, 255)

public static readonly RgbaByte Cyan

Field Value

RgbaByte

DarkRed

Dark Red (153, 0, 0, 255)

public static readonly RgbaByte DarkRed

Field Value

RgbaByte

G

The green component.

public readonly byte G

Field Value

byte

Green

Green (0, 255, 0, 255)

public static readonly RgbaByte Green

Field Value

RgbaByte

Grey

Grey (64, 64, 64, 255)

public static readonly RgbaByte Grey

Field Value

RgbaByte

LightGrey

Light Grey (166, 166, 166, 255)

public static readonly RgbaByte LightGrey

Field Value

RgbaByte

Orange

Orange (255, 92, 0, 255)

public static readonly RgbaByte Orange

Field Value

RgbaByte

Pink

Pink (255, 155, 191, 255)

public static readonly RgbaByte Pink

Field Value

RgbaByte

R

The red component.

public readonly byte R

Field Value

byte

Red

Red (255, 0, 0, 255)

public static readonly RgbaByte Red

Field Value

RgbaByte

White

White (255, 255, 255, 255)

public static readonly RgbaByte White

Field Value

RgbaByte

Yellow

Yellow (255, 255, 0, 255)

public static readonly RgbaByte Yellow

Field Value

RgbaByte

Methods

Equals(RgbaByte)

Element-wise equality.

public bool Equals(RgbaByte other)

Parameters

other RgbaByte

The instance to compare to.

Returns

bool

True if all elements are equal; false otherswise.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns a string representation of this color.

public override string ToString()

Returns

string

Operators

operator ==(RgbaByte, RgbaByte)

Element-wise equality.

public static bool operator ==(RgbaByte left, RgbaByte right)

Parameters

left RgbaByte

The first value.

right RgbaByte

The second value.

Returns

bool

operator !=(RgbaByte, RgbaByte)

Element-wise inequality.

public static bool operator !=(RgbaByte left, RgbaByte right)

Parameters

left RgbaByte

The first value.

right RgbaByte

The second value.

Returns

bool