Sinespace Client 2025.3.19431
Client-side scripting for Sinespace
|
Public Member Functions | |
SColor (float r, float g, float b, float a) | |
Creates a color from red, green, blue and alpha parameters. | |
string | ToHex () |
Returns the Hex value of the color. | |
SColor (float r, float g, float b) | |
Creates a color from red, green, and blue parameters. Alpha is assumed to be fully opaque. | |
SColor | Lerp (SColor b, float t) |
Linearly interpolates between current color and b by t. | |
bool | Equals (SColor other) |
Returns true if the colors are same. | |
override string | ToString () |
Returns a string RGBA value of current color. | |
Static Public Member Functions | |
static SColor | New (float r, float g, float b, float a) |
Creates a color from red, green, blue and alpha parameters. | |
static SColor | FromHex (string hex) |
Creates a color from Hex value. | |
Public Attributes | |
float | R |
float | G |
float | B |
float | A |
Properties | |
SColor | Black [get] |
Solid black. RGBA is (0, 0, 0, 1). | |
SColor | White [get] |
Solid White. RGBA is (1, 1, 1, 1). | |
SColor | Red [get] |
Solid Red. RGBA is (1, 0, 0, 1). | |
SColor | Blue [get] |
Solid Blue. RGBA is (0, 0, 1, 1). | |
SColor | Green [get] |
Solid Green. RGBA is (0, 1, 0, 1). | |
SColor | Yellow [get] |
Yellow. RGBA is (1, 0.92, 0.016, 1), but the color is nice to look at! | |
SineSpace.Scripting.Types.SColor.SColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a ) |
Creates a color from red, green, blue and alpha parameters.
r | |
g | |
b | |
a |
SineSpace.Scripting.Types.SColor.SColor | ( | float | r, |
float | g, | ||
float | b ) |
Creates a color from red, green, and blue parameters. Alpha is assumed to be fully opaque.
r | |
g | |
b |
bool SineSpace.Scripting.Types.SColor.Equals | ( | SColor | other | ) |
Returns true if the colors are same.
other | Another color you want to compare |
|
static |
Creates a color from Hex value.
hex | Hex value |
Linearly interpolates between current color and b by t.
b | Color b. |
t | Float for combining a and b. |
|
static |
Creates a color from red, green, blue and alpha parameters.
r | Red |
g | Green |
b | Blue |
a | Alpha |
string SineSpace.Scripting.Types.SColor.ToHex | ( | ) |
Returns the Hex value of the color.
override string SineSpace.Scripting.Types.SColor.ToString | ( | ) |
Returns a string RGBA value of current color.
float SineSpace.Scripting.Types.SColor.A |
float SineSpace.Scripting.Types.SColor.B |
float SineSpace.Scripting.Types.SColor.G |
float SineSpace.Scripting.Types.SColor.R |
|
get |
Solid black. RGBA is (0, 0, 0, 1).
|
get |
Solid Blue. RGBA is (0, 0, 1, 1).
|
get |
Solid Green. RGBA is (0, 1, 0, 1).
|
get |
Solid Red. RGBA is (1, 0, 0, 1).
|
get |
Solid White. RGBA is (1, 1, 1, 1).
|
get |
Yellow. RGBA is (1, 0.92, 0.016, 1), but the color is nice to look at!