inlib
1.2.0
|
Public Types | |
typedef char | name [24] |
typedef float | rgb [3] |
Public Member Functions | |
colorf () | |
colorf (float a_r, float a_g, float a_b) | |
virtual | ~colorf () |
colorf (const colorf &a_from) | |
colorf & | operator= (const colorf &a_from) |
float | r () const |
float | g () const |
float | b () const |
Static Public Member Functions | |
static colorf | aquamarine () |
static colorf | mediumaquamarine () |
static colorf | black () |
static colorf | blue () |
static colorf | cadetblue () |
static colorf | cornflowerblue () |
static colorf | darkslateblue () |
static colorf | lightblue () |
static colorf | lightsteelblue () |
static colorf | mediumblue () |
static colorf | mediumslateblue () |
static colorf | midnightblue () |
static colorf | navyblue () |
static colorf | navy () |
static colorf | skyblue () |
static colorf | slateblue () |
static colorf | steelblue () |
static colorf | coral () |
static colorf | cyan () |
static colorf | firebrick () |
static colorf | brown () |
static colorf | gold () |
static colorf | goldenrod () |
static colorf | green () |
static colorf | darkgreen () |
static colorf | darkolivegreen () |
static colorf | forestgreen () |
static colorf | limegreen () |
static colorf | mediumseagreen () |
static colorf | mediumspringgreen () |
static colorf | palegreen () |
static colorf | seagreen () |
static colorf | springgreen () |
static colorf | yellowgreen () |
static colorf | darkslategrey () |
static colorf | dimgrey () |
static colorf | lightgrey () |
static colorf | grey () |
static colorf | khaki () |
static colorf | magenta () |
static colorf | maroon () |
static colorf | orange () |
static colorf | orchid () |
static colorf | darkorchid () |
static colorf | mediumorchid () |
static colorf | pink () |
static colorf | plum () |
static colorf | red () |
static colorf | indianred () |
static colorf | mediumvioletred () |
static colorf | orangered () |
static colorf | violetred () |
static colorf | salmon () |
static colorf | sienna () |
static colorf | tan () |
static colorf | thistle () |
static colorf | turquoise () |
static colorf | darkturquoise () |
static colorf | mediumturquoise () |
static colorf | violet () |
static colorf | blueviolet () |
static colorf | wheat () |
static colorf | white () |
static colorf | yellow () |
static colorf | greenyellow () |
static unsigned int | named_color_number () |
static const name * | named_color_names () |
static const rgb * | named_color_rgbs () |
static bool | to (const std::string &a_string, float &a_r, float &a_g, float &a_b) |
static std::string | to (colorf &a_color) |
typedef char inlib::colorf::name[24] |
typedef float inlib::colorf::rgb[3] |
inlib::colorf::colorf | ( | float | a_r, |
float | a_g, | ||
float | a_b | ||
) | [inline] |
inlib::colorf::colorf | ( | const colorf & | a_from | ) | [inline] |
static colorf inlib::colorf::aquamarine | ( | ) | [inline, static] |
float inlib::colorf::b | ( | ) | const [inline] |
static colorf inlib::colorf::black | ( | ) | [inline, static] |
static colorf inlib::colorf::blue | ( | ) | [inline, static] |
static colorf inlib::colorf::blueviolet | ( | ) | [inline, static] |
static colorf inlib::colorf::brown | ( | ) | [inline, static] |
static colorf inlib::colorf::cadetblue | ( | ) | [inline, static] |
static colorf inlib::colorf::coral | ( | ) | [inline, static] |
static colorf inlib::colorf::cornflowerblue | ( | ) | [inline, static] |
static colorf inlib::colorf::cyan | ( | ) | [inline, static] |
static colorf inlib::colorf::darkgreen | ( | ) | [inline, static] |
static colorf inlib::colorf::darkolivegreen | ( | ) | [inline, static] |
static colorf inlib::colorf::darkorchid | ( | ) | [inline, static] |
static colorf inlib::colorf::darkslateblue | ( | ) | [inline, static] |
static colorf inlib::colorf::darkslategrey | ( | ) | [inline, static] |
static colorf inlib::colorf::darkturquoise | ( | ) | [inline, static] |
static colorf inlib::colorf::dimgrey | ( | ) | [inline, static] |
static colorf inlib::colorf::firebrick | ( | ) | [inline, static] |
static colorf inlib::colorf::forestgreen | ( | ) | [inline, static] |
float inlib::colorf::g | ( | ) | const [inline] |
static colorf inlib::colorf::gold | ( | ) | [inline, static] |
static colorf inlib::colorf::goldenrod | ( | ) | [inline, static] |
static colorf inlib::colorf::green | ( | ) | [inline, static] |
static colorf inlib::colorf::greenyellow | ( | ) | [inline, static] |
static colorf inlib::colorf::grey | ( | ) | [inline, static] |
static colorf inlib::colorf::indianred | ( | ) | [inline, static] |
static colorf inlib::colorf::khaki | ( | ) | [inline, static] |
static colorf inlib::colorf::lightblue | ( | ) | [inline, static] |
static colorf inlib::colorf::lightgrey | ( | ) | [inline, static] |
static colorf inlib::colorf::lightsteelblue | ( | ) | [inline, static] |
static colorf inlib::colorf::limegreen | ( | ) | [inline, static] |
static colorf inlib::colorf::magenta | ( | ) | [inline, static] |
static colorf inlib::colorf::maroon | ( | ) | [inline, static] |
static colorf inlib::colorf::mediumaquamarine | ( | ) | [inline, static] |
static colorf inlib::colorf::mediumblue | ( | ) | [inline, static] |
static colorf inlib::colorf::mediumorchid | ( | ) | [inline, static] |
static colorf inlib::colorf::mediumseagreen | ( | ) | [inline, static] |
static colorf inlib::colorf::mediumslateblue | ( | ) | [inline, static] |
static colorf inlib::colorf::mediumspringgreen | ( | ) | [inline, static] |
static colorf inlib::colorf::mediumturquoise | ( | ) | [inline, static] |
static colorf inlib::colorf::mediumvioletred | ( | ) | [inline, static] |
static colorf inlib::colorf::midnightblue | ( | ) | [inline, static] |
static const name* inlib::colorf::named_color_names | ( | ) | [inline, static] |
Definition at line 117 of file colorf.
{ static const char list[65][24] = { //read only static. "aquamarine", "mediumaquamarine", "black", "blue", "cadetblue", "cornflowerblue", "darkslateblue", "lightblue", "lightsteelblue", "mediumblue", "mediumslateblue", "midnightblue", "navyblue", "navy", "skyblue", "slateblue", "steelblue", "coral", "cyan", "firebrick", "brown", "gold", "goldenrod", "green", "darkgreen", "darkolivegreen", "forestgreen", "limegreen", "mediumseagreen", "mediumspringgreen", "palegreen", "seagreen", "springgreen", "yellowgreen", "darkslategrey", "dimgrey", "lightgrey", "grey", "khaki", "magenta", "maroon", "orange", "orchid", "darkorchid", "mediumorchid", "pink", "plum", "red", "indianred", "mediumvioletred", "orangered", "violetred", "salmon", "sienna", "tan", "thistle", "turquoise", "darkturquoise", "mediumturquoise", "violet", "blueviolet", "wheat", "white", "yellow", "greenyellow" }; return list; }
static unsigned int inlib::colorf::named_color_number | ( | ) | [inline, static] |
static const rgb* inlib::colorf::named_color_rgbs | ( | ) | [inline, static] |
Definition at line 195 of file colorf.
{ static const float list[65][3] = { {0.496101f,0.996109f,0.828138f}, //aquamarine {0.398444f,0.800793f,0.664073f}, //mediumaquamarine {0,0,0}, //black {0,0,1}, //blue {0.371099f,0.617197f,0.62501f}, //cadetblue {0.390631f,0.58204f,0.925795f}, //cornflowerblue {0.281254f,0.238285f,0.542977f}, //darkslateblue {0.675792f,0.843763f,0.898451f}, //lightblue {0.68751f,0.765637f,0.867201f}, //lightsteelblue {0,0,0.800793f}, //mediumblue {0.480476f,0.406256f,0.929702f}, //mediumslateblue {0.0976577f,0.0976577f,0.437507f}, //midnightblue {0,0,0.500008f}, //navyblue {0,0,0.500008f}, //navy {0.527352f,0.8047f,0.917983f}, //skyblue {0.414069f,0.351568f,0.800793f}, //slateblue {0.273442f,0.50782f,0.703136f}, //steelblue {0.996109f,0.496101f,0.312505f}, //coral {0,1,1}, //cyan {0.695323f,0.132815f,0.13281f}, //firebrick {0.644541f,0.164065f,0.164065f}, //brown {0.996109f,0.839857f,0}, //gold {0.851575f,0.644541f,0.125002f}, //goldenrod {0,1,0}, //green {0,0.390631f,0}, //darkgreen {0.332036f,0.417975f,0.183597f}, //darkolivegreen {0.132815f,0.542977f,0.132815f}, //forestgreen {0.195315f,0.800793f,0.195315f}, //limegreen {0.234379f,0.699229f,0.441413f}, //mediumseagreen {0,0.976577f,0.601572f}, //mediumspringgreen {0.593759f,0.980484f,0.593759f}, //palegreen {0.17969f,0.542977f,0.339849f}, //seagreen {0,0.996109f,0.496101f}, //springgreen {0.601572f,0.800793f,0.195315f}, //yellowgreen {0.183597f,0.308598f,0.308598f}, //darkslategrey {0.410163f,0.410163f,0.410163f}, //dimgrey {0.824231f,0.824231f,0.824231f}, //lightgrey {0.750011f,0.750011f,0.750011f}, //grey {0.937514f,0.898451f,0.546883f}, //khaki {1,0,1}, //magenta {0.68751f,0.187503f,0.375006f}, //maroon {0.996109f,0.644541f,0}, //orange {0.851575f,0.437507f,0.83595f}, //orchid {0.597665f,0.195315f,0.796887f}, //darkorchid {0.726574f,0.332036f,0.824231f}, //mediumorchid {0.996109f,0.750011f,0.792981f}, //pink {0.863294f,0.62501f,0.863294f}, //plum {1,0,0}, //red {0.800793f,0.35938f,0.35938f}, //indianred {0.777356f,0.0820325f,0.519539f}, //mediumvioletred {0.996109f,0.269535f,0}, //orangered {0.812512f,0.125002f,0.562509f}, //violetred {0.976577f,0.500008f,0.445319f}, //salmon {0.62501f,0.320317f,0.175784f}, //sienna {0.820325f,0.703136f,0.546883f}, //tan {0.843763f,0.746105f,0.843763f}, //thistle {0.250004f,0.875013f,0.812512f}, //turquoise {0,0.8047f,0.816419f}, //darkturquoise {0.281254f,0.816419f,0.796887f}, //mediumturquoise {0.929702f,0.50782f,0.929702f}, //violet {0.539071f,0.167971f,0.882826f}, //blueviolet {0.957046f,0.867201f,0.699229f}, //wheat {1,1,1}, //white {1,1,0}, //yellow {0.675792f,0.996109f,0.18359f} //greenyellow }; return list; }
static colorf inlib::colorf::navy | ( | ) | [inline, static] |
static colorf inlib::colorf::navyblue | ( | ) | [inline, static] |
Definition at line 19 of file colorf.
{ vec3f::operator=(a_from); return *this; }
static colorf inlib::colorf::orange | ( | ) | [inline, static] |
static colorf inlib::colorf::orangered | ( | ) | [inline, static] |
static colorf inlib::colorf::orchid | ( | ) | [inline, static] |
static colorf inlib::colorf::palegreen | ( | ) | [inline, static] |
static colorf inlib::colorf::pink | ( | ) | [inline, static] |
static colorf inlib::colorf::plum | ( | ) | [inline, static] |
float inlib::colorf::r | ( | ) | const [inline] |
static colorf inlib::colorf::red | ( | ) | [inline, static] |
static colorf inlib::colorf::salmon | ( | ) | [inline, static] |
static colorf inlib::colorf::seagreen | ( | ) | [inline, static] |
static colorf inlib::colorf::sienna | ( | ) | [inline, static] |
static colorf inlib::colorf::skyblue | ( | ) | [inline, static] |
static colorf inlib::colorf::slateblue | ( | ) | [inline, static] |
static colorf inlib::colorf::springgreen | ( | ) | [inline, static] |
static colorf inlib::colorf::steelblue | ( | ) | [inline, static] |
static colorf inlib::colorf::tan | ( | ) | [inline, static] |
static colorf inlib::colorf::thistle | ( | ) | [inline, static] |
static bool inlib::colorf::to | ( | const std::string & | a_string, |
float & | a_r, | ||
float & | a_g, | ||
float & | a_b | ||
) | [inline, static] |
Definition at line 272 of file colorf.
{ unsigned int number = named_color_number(); const colorf::name* names = named_color_names(); const colorf::rgb* rgbs = named_color_rgbs(); for(unsigned int index=0;index<number;index++) { if(a_string==names[index]) { a_r = rgbs[index][0]; a_g = rgbs[index][1]; a_b = rgbs[index][2]; return true; } } a_r = 0.5f; a_g = 0.5f; a_b = 0.5f; return false; }
static std::string inlib::colorf::to | ( | colorf & | a_color | ) | [inline, static] |
static colorf inlib::colorf::turquoise | ( | ) | [inline, static] |
static colorf inlib::colorf::violet | ( | ) | [inline, static] |
static colorf inlib::colorf::violetred | ( | ) | [inline, static] |
static colorf inlib::colorf::wheat | ( | ) | [inline, static] |
static colorf inlib::colorf::white | ( | ) | [inline, static] |
static colorf inlib::colorf::yellow | ( | ) | [inline, static] |
static colorf inlib::colorf::yellowgreen | ( | ) | [inline, static] |