Arcade
|
Structure representing a 24-bit RGB color (8 bits per component). More...
Public Member Functions | |
Color24 (int rgb) | |
Constructs a color from a 24 bit integer representation. More... | |
Color24 (byte r, byte g, byte b) | |
Constructs a color from individual 8 bit RGB components. More... | |
int | Difference (Color24 other) |
Gets the square of the euclidean distance between this color and another. More... | |
override string | ToString () |
Gets a string representing this color in #rrggbb format. More... | |
Static Public Member Functions | |
static implicit | operator Color24 (int rgb) |
static implicit | operator int (Color24 clr) |
Public Attributes | |
byte | R |
Red component of the color. More... | |
byte | G |
Green component of the color. More... | |
byte | B |
Blue component of the color. More... | |
Static Public Attributes | |
static readonly Color24 | Black = new Color24(0x00, 0x00, 0x00) |
#000000 More... | |
static readonly Color24 | White = new Color24(0xff, 0xff, 0xff) |
#ffffff More... | |
Structure representing a 24-bit RGB color (8 bits per component).
|
inline |
Constructs a color from a 24 bit integer representation.
|
inline |
Constructs a color from individual 8 bit RGB components.
|
inline |
Gets the square of the euclidean distance between this color and another.
|
inlinestatic |
|
inlinestatic |
|
inline |
Gets a string representing this color in #rrggbb format.
byte GameAPI.Color24.B |
Blue component of the color.
byte GameAPI.Color24.G |
Green component of the color.
byte GameAPI.Color24.R |
Red component of the color.