SColor
Index
Functions Index
Properties Index
Functions
ToHex
string ToHex ()
Return the Hex value of the color.
Lerp
Linearly interpolates between current color and b by t.
Equals
Returns true if colors are same.
ToString
string ToString ()
Returns the RGBA value of the current color.
New
Create a color by red, green, blue and alpha parameters.
FromHex
Create a color by Hex value.
Properties
R
float R get
Property Description
G
float G get
Property Description
B
float B get
Property Description
A
float A get
Property Description
Black
Solid black. RGBA is (0, 0, 0, 1).
White
Solid White. RGBA is (1, 1, 1, 1).
Red
Solid Red. RGBA is (1, 0, 0, 1).
Blue
Solid Blue. RGBA is (0, 0, 1, 1).
Green
Solid Green. RGBA is (0, 1, 0, 1).
Yellow
Yellow. RGBA is (1, 0.92, 0.016, 1).
Last updated
Was this helpful?