API ReferenceGearsSharing
SharedColor
A color of red, green, blue and alpha (RGBA) channels, each a float kept bit for bit.
public sealed class SharedColor : SharedValueA color of red, green, blue and alpha (RGBA) channels, each a float kept bit for bit.
Inheritance: Object → SharedValue → SharedColor
Properties
R
public float R { get; }Gets the red channel, normally 0 to 1.
G
public float G { get; }Gets the green channel, normally 0 to 1.
B
public float B { get; }Gets the blue channel, normally 0 to 1.
A
public float A { get; }Gets the alpha channel, normally 0 to 1.
Methods
Equals(SharedValue)
public override bool Equals(SharedValue other)Indicates whether the current object is equal to another object of the same type.
GetHashCode()
public override int GetHashCode()Serves as the default hash function.
ToString()
public override string ToString()Returns the value as text, for display. Floats use the shortest round-trip form.