Table of Contents

Struct FullColor

Namespace
Termule.Engine.Types
Assembly
Termule.Engine.dll

Full RGB color.

public readonly struct FullColor
Inherited Members

Properties

B

Gets the blue component.

public float B { get; }

Property Value

float

G

Gets the green component.

public float G { get; }

Property Value

float

R

Gets the red component.

public float R { get; }

Property Value

float

Methods

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; 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.

Operators

operator ==(FullColor, FullColor)

Determines whether two FullColor instances are equal.

public static bool operator ==(FullColor c1, FullColor c2)

Parameters

c1 FullColor

The first FullColor to compare.

c2 FullColor

The second FullColor to compare.

Returns

bool

true if the colors are equal; otherwise, false.

implicit operator FullColor((float r, float g, float b))

Creates a FullColor from a tuple representing its components.

public static implicit operator FullColor((float r, float g, float b) tuple)

Parameters

tuple (float r, float g, float b)

The RGB tuple to use.

Returns

FullColor

operator !=(FullColor, FullColor)

Determines whether two FullColor instances are not equal.

public static bool operator !=(FullColor c1, FullColor c2)

Parameters

c1 FullColor

The first FullColor to compare.

c2 FullColor

The second FullColor to compare.

Returns

bool

true if the colors are not equal; otherwise, false.