Struct FullColor
Full RGB color.
public readonly struct FullColor
- Inherited Members
Properties
B
Gets the blue component.
public float B { get; }
Property Value
G
Gets the green component.
public float G { get; }
Property Value
R
Gets the red component.
public float R { get; }
Property Value
Methods
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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
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
Returns
operator !=(FullColor, FullColor)
Determines whether two FullColor instances are not equal.
public static bool operator !=(FullColor c1, FullColor c2)
Parameters
Returns
- bool
true if the colors are not equal; otherwise, false.