#include <stage.hh>
Public Member Functions | |
Color (float r, float g, float b, float a=1.0) | |
Color (const std::string &name) | |
Color () | |
bool | Load (Worldfile *wf, int entity) |
bool | operator!= (const Color &other) const |
bool | operator== (const Color &other) const |
void | Print (const char *prefix) const |
Static Public Member Functions | |
static Color | RandomColor () |
Public Attributes | |
float | a |
float | b |
static const Color | cyan |
float | g |
static const Color | green |
static const Color | magenta |
float | r |
static const Color | red |
static const Color | yellow |
Static Public Attributes | |
static const Color | blue |
Color::Color | ( | float | r, |
float | g, | ||
float | b, | ||
float | a = 1.0 |
||
) |
Color::Color | ( | const std::string & | name | ) |
Look up the color in the X11-style database. If the color is not found in the database, a cheerful red color will be used instead.
Color::Color | ( | ) |
bool Color::Load | ( | Worldfile * | wf, |
int | entity | ||
) |
bool Color::operator!= | ( | const Color & | other | ) | const |
bool Color::operator== | ( | const Color & | other | ) | const |
void Color::Print | ( | const char * | prefix | ) | const |
Color Color::RandomColor | ( | ) | [static] |
float Stg::Color::a |
float Stg::Color::b |
const Color Color::blue [static] |
convenient constants
const Color Color::cyan |
float Stg::Color::g |
const Color Color::green |
const Color Color::magenta |
float Stg::Color::r |
const Color Color::red |
const Color Color::yellow |