Arcade
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
GameAPI.Color24 Struct Reference

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...
 

Detailed Description

Structure representing a 24-bit RGB color (8 bits per component).

Constructor & Destructor Documentation

GameAPI.Color24.Color24 ( int  rgb)
inline

Constructs a color from a 24 bit integer representation.

GameAPI.Color24.Color24 ( byte  r,
byte  g,
byte  b 
)
inline

Constructs a color from individual 8 bit RGB components.

Member Function Documentation

int GameAPI.Color24.Difference ( Color24  other)
inline

Gets the square of the euclidean distance between this color and another.

static implicit GameAPI.Color24.operator Color24 ( int  rgb)
inlinestatic
static implicit GameAPI.Color24.operator int ( Color24  clr)
inlinestatic
override string GameAPI.Color24.ToString ( )
inline

Gets a string representing this color in #rrggbb format.

Member Data Documentation

byte GameAPI.Color24.B

Blue component of the color.

readonly Color24 GameAPI.Color24.Black = new Color24(0x00, 0x00, 0x00)
static

#000000

byte GameAPI.Color24.G

Green component of the color.

byte GameAPI.Color24.R

Red component of the color.

readonly Color24 GameAPI.Color24.White = new Color24(0xff, 0xff, 0xff)
static

#ffffff