Struct Color
Namespace: OblivionMpCSharpMod.Values
Assembly: OblivionMpCSharpMod.dll
A linear RGBA color with components in the 0..1 range.
public readonly struct Color : IEquatable<Color>
Implements
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Color(float, float, float, float)
A linear RGBA color with components in the 0..1 range.
public Color(float R, float G, float B, float A = 1)
Parameters
R float
Red component (0..1).
G float
Green component (0..1).
B float
Blue component (0..1).
A float
Alpha component (0..1). Defaults to fully opaque.
Properties
A
Alpha component (0..1). Defaults to fully opaque.
public float A { get; init; }
Property Value
B
Blue component (0..1).
public float B { get; init; }
Property Value
G
Green component (0..1).
public float G { get; init; }
Property Value
R
Red component (0..1).
public float R { get; init; }
Property Value
Methods
Deconstruct(out float, out float, out float, out float)
public void Deconstruct(out float R, out float G, out float B, out float A)
Parameters
R float
G float
B float
A float
Equals(object)
public override bool Equals(object obj)
Parameters
obj object
Returns
Equals(Color)
public bool Equals(Color other)
Parameters
other Color
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(Color, Color)
public static bool operator ==(Color left, Color right)
Parameters
left Color
right Color
Returns
operator !=(Color, Color)
public static bool operator !=(Color left, Color right)
Parameters
left Color
right Color