Ginga  0.13.6
 All Classes Namespaces Functions Variables
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
Color Class Reference
Inheritance diagram for Color:
Inheritance graph
[legend]
Collaboration diagram for Color:
Collaboration graph
[legend]

Public Member Functions

 Color (int r, int g, int b, int alpha=255)
 
 Color (string color, int alpha=255)
 
void setColor (string color)
 
void setColor (int red, int green, int blue)
 
int getR ()
 
int getG ()
 
int getB ()
 
int getAlpha ()
 
uint32_t getRGBA ()
 
uint32_t getARGB ()
 

Static Public Member Functions

static int colortoi (string color)
 

Static Public Attributes

static const int white = 0XFFFFFF
 
static const int yellow = 0XFFFF00
 
static const int red = 0XFF0000
 
static const int pink = 0XFFC0CB
 
static const int orange = 0XFFA500
 
static const int magenta = 0XFF00FF
 
static const int green = 0X008000
 
static const int cyan = 0X00FFFF
 
static const int blue = 0X0000FF
 
static const int lightGray = 0XD3D3D3
 
static const int gray = 0X808080
 
static const int darkGray = 0XA9A9A9
 
static const int black = 0X000000
 
static const int silver = 0XC0C0C0
 
static const int maroon = 0X800000
 
static const int fuchsia = 0XFF00FF
 
static const int purple = 0X800080
 
static const int lime = 0X00FF00
 
static const int olive = 0X808000
 
static const int navy = 0X000080
 
static const int aqua = 0X00FFFF
 
static const int teal = 0X008080
 
static const string swhite = "#FFFFFF"
 
static const string syellow = "#FFFF00"
 
static const string sred = "#FF0000"
 
static const string spink = "#FFC0CB"
 
static const string sorange = "#FFA500"
 
static const string smagenta = "#FF00FF"
 
static const string sgreen = "#008000"
 
static const string scyan = "#00FFFF"
 
static const string sblue = "#0000FF"
 
static const string slightGray = "#D3D3D3"
 
static const string sgray = "#808080"
 
static const string sdarkGray = "#A9A9A9"
 
static const string sblack = "#101010"
 
static const string ssilver = "#C0C0C0"
 
static const string smaroon = "#800000"
 
static const string sfuchsia = "#FF00FF"
 
static const string spurple = "#800080"
 
static const string slime = "#00FF00"
 
static const string solive = "#808000"
 
static const string snavy = "#000080"
 
static const string saqua = "#00FFFF"
 
static const string steal = "#008080"
 

Protected Member Functions

void setColorToI (string color)
 

The documentation for this class was generated from the following files: