Represents a 24 bit Color.
More...
|
| | Color (string value) |
| | Create a new Color from string.
|
| | Color (double[] value) |
| | Create a new Color from double array.
|
| | Color (double r, double g, double b) |
| | Create a new Color from double values.
|
| | Color (double a, double r, double g, double b) |
| | Create a new Color from double values.
|
| | Color (uint r, uint g, uint b) |
| | Create a new Color from uint values.
|
| | Color (uint a, uint r, uint g, uint b) |
| | Create a new Color from uint values.
|
| | Color (uint value) |
| | Create a new Color from uint.
|
| uint | ToUInt () |
| | Returns the uint value of this Color.
|
| override string | ToString () |
| | Returns the string hex value of this Color.
|
| string | ToString (bool alpha) |
| | Returns the string hex value of this Color.
|
| uint | Alpha () |
| uint | Red () |
| uint | Green () |
| uint | Blue () |
| Color | Alpha (uint alpha) |
Represents a 24 bit Color.
◆ Color() [1/7]
| livemap.data.Color.Color |
( |
string | value | ) |
|
|
inline |
Create a new Color from string.
- Parameters
-
| value | the uint value of the Color ("#RRGGBB") |
◆ Color() [2/7]
| livemap.data.Color.Color |
( |
double[] | value | ) |
|
|
inline |
Create a new Color from double array.
- Parameters
-
| value | the double array value of the Color ("[r, g, b, a]") |
◆ Color() [3/7]
| livemap.data.Color.Color |
( |
double | r, |
|
|
double | g, |
|
|
double | b ) |
|
inline |
Create a new Color from double values.
- Parameters
-
| r | the double value for red (0.0 - 1.0) |
| g | the double value for green (0.0 - 1.0) |
| b | the double value for blue (0.0 - 1.0) |
◆ Color() [4/7]
| livemap.data.Color.Color |
( |
double | a, |
|
|
double | r, |
|
|
double | g, |
|
|
double | b ) |
|
inline |
Create a new Color from double values.
- Parameters
-
| a | the double value for alpha (0.0 - 1.0) |
| r | the double value for red (0.0 - 1.0) |
| g | the double value for green (0.0 - 1.0) |
| b | the double value for blue (0.0 - 1.0) |
◆ Color() [5/7]
| livemap.data.Color.Color |
( |
uint | r, |
|
|
uint | g, |
|
|
uint | b ) |
|
inline |
Create a new Color from uint values.
- Parameters
-
| r | the uint value for red (0x0 - 0xFF) |
| g | the uint value for green (0x0 - 0xFF) |
| b | the uint value for blue (0x0 - 0xFF) |
◆ Color() [6/7]
| livemap.data.Color.Color |
( |
uint | a, |
|
|
uint | r, |
|
|
uint | g, |
|
|
uint | b ) |
|
inline |
Create a new Color from uint values.
- Parameters
-
| a | the uint value for alpha (0x0 - 0xFF) |
| r | the uint value for red (0x0 - 0xFF) |
| g | the uint value for green (0x0 - 0xFF) |
| b | the uint value for blue (0x0 - 0xFF) |
◆ Color() [7/7]
| livemap.data.Color.Color |
( |
uint | value | ) |
|
|
inline |
Create a new Color from uint.
- Parameters
-
| value | the uint value of the Color (0xRRGGBB) |
◆ Alpha() [1/2]
| uint livemap.data.Color.Alpha |
( |
| ) |
|
◆ Alpha() [2/2]
| Color livemap.data.Color.Alpha |
( |
uint | alpha | ) |
|
◆ Blend()
◆ Blue()
| uint livemap.data.Color.Blue |
( |
| ) |
|
◆ Green()
| uint livemap.data.Color.Green |
( |
| ) |
|
◆ Hsb2Rgb()
| Color livemap.data.Color.Hsb2Rgb |
( |
float | hue, |
|
|
float | saturation, |
|
|
float | brightness ) |
|
inlinestatic |
◆ LerpHsb()
| Color livemap.data.Color.LerpHsb |
( |
Color | color0, |
|
|
Color | color1, |
|
|
float | delta ) |
|
inlinestatic |
◆ operator Color() [1/2]
| implicit livemap.data.Color.operator Color |
( |
string | value | ) |
|
|
static |
Implicit cast string to Color.
- Parameters
-
- Returns
- Color parsed from string
◆ operator Color() [2/2]
| implicit livemap.data.Color.operator Color |
( |
uint | value | ) |
|
|
static |
Implicit cast uint to Color.
- Parameters
-
- Returns
- Color parsed from uint
◆ operator string()
| implicit livemap.data.Color.operator string |
( |
Color | color | ) |
|
|
static |
Implicit cast Color to string.
- Parameters
-
- Returns
- string representation of this Color in the format of
"#RRGGBB"
◆ operator uint()
| implicit livemap.data.Color.operator uint |
( |
Color | color | ) |
|
|
static |
Implicit cast Color to uint.
- Parameters
-
- Returns
- uint representation of this Color in the format of
0xRRGGBB
◆ Parse()
| uint livemap.data.Color.Parse |
( |
string | value | ) |
|
|
inlinestatic |
Parse a string representation of a Color into a uint value.
- Parameters
-
- Returns
- Color parsed from string
◆ Red()
| uint livemap.data.Color.Red |
( |
| ) |
|
◆ Reverse()
◆ Rgb2Hsb()
| float[] livemap.data.Color.Rgb2Hsb |
( |
uint | red, |
|
|
uint | green, |
|
|
uint | blue ) |
|
inlinestatic |
◆ ToString() [1/2]
| override string livemap.data.Color.ToString |
( |
| ) |
|
Returns the string hex value of this Color.
- Returns
- string hex value
◆ ToString() [2/2]
| string livemap.data.Color.ToString |
( |
bool | alpha | ) |
|
|
inline |
Returns the string hex value of this Color.
- Returns
- string hex value
◆ ToUInt()
| uint livemap.data.Color.ToUInt |
( |
| ) |
|
Returns the uint value of this Color.
- Returns
- uint Color value
The documentation for this struct was generated from the following file: