Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members | Related Pages

Color Class Reference

Color contains functions to create color values, as well as a set of color constants. More...

Inheritance diagram for Color:

Object List of all members.

Public Member Functions

float _RGB (int32_t r, int32_t g, int32_t b)
 Return a 32 bit value representing the passed RGB color Value contains the ARGB values at 4 8 bit values from 0 to 255.
float _RGBA (int32_t r, int32_t g, int32_t b, int32_t a)
 This function behaves the same as RGB, except that alpha is set to the passed value rather than 255.
float fRGB (float r, float g, float b)
 This function behaves the same as RGB except that the values are floating point, between 0 and 1.
float fRGBA (float r, float g, float b, float a)
 This function behaves the same as fRGB except that the alpha is set to the passed value rather than 255.
float sRGB (const Fusion::UTF8String &s)
 This function converts the passed string into a 32 bit integer representing a color value.
float sRGBA (const Fusion::UTF8String &s)
 This function behaves the same as sRGB, except that the upper 8 bits are left unmodified, allowing an alpha value to be included.

Detailed Description

Color contains functions to create color values, as well as a set of color constants.

The color constants defined by default include:

alicebluesRGB("0xF0F8FF");
antiquewhitesRGB("0xFAEBD7");
aquasRGB("0x00FFFF");
aquamarinesRGB("0x7FFFD4");
azuresRGB("0xF0FFFF");
beigesRGB("0xF5F5DC");
bisquesRGB("0xFFE4C4");
blacksRGB("0x000000");
blanchedalmondsRGB("0xFFEBCD");
bluesRGB("0x0000FF");
bluevioletsRGB("0x8A2BE2");
brownsRGB("0xA52A2A");
burlywoodsRGB("0xDEB887");
cadetbluesRGB("0x5F9EA0");
chartreusesRGB("0x7FFF00");
chocolatesRGB("0xD2691E");
coralsRGB("0xFF7F50");
cornflowerbluesRGB("0x6495ED");
cornsilksRGB("0xFFF8DC");
crimsonsRGB("0xDC1436");
cyansRGB("0x00FFFF");
darkbluesRGB("0x00008B");
darkcyansRGB("0x008B8B");
darkgoldenrodsRGB("0xB8860B");
darkgraysRGB("0xA9A9A9");
darkgreensRGB("0x006400");
darkkhakisRGB("0xBDB76B");
darkmagentasRGB("0x8B008B");
darkolivegreensRGB("0x556B2F");
darkorangesRGB("0xFF8C00");
darkorchidsRGB("0x9932CC");
darkredsRGB("0x8B0000");
darksalmonsRGB("0xE9967A");
darkseagreensRGB("0x8FBC8F");
darkslatebluesRGB("0x483D8B");
darkslategraysRGB("0x2F4F4F");
darkturquoisesRGB("0x00CED1");
darkvioletsRGB("0x9400D3");
deeppinksRGB("0xFF1493");
deepskybluesRGB("0x00BFFF");
dimgraysRGB("0x696969");
dodgerbluesRGB("0x1E90FF");
feldsparsRGB("0xD19275");
firebricksRGB("0xB22222");
floralwhitesRGB("0xFFFAF0");
forestgreensRGB("0x228B22");
fuchsiasRGB("0xFF00FF");
gainsborosRGB("0xDCDCDC");
ghostwhitesRGB("0xF8F8FF");
goldsRGB("0xFFD700");
goldenrodsRGB("0xDAA520");
greensRGB("0x008000");
greenyellowsRGB("0xADFF2F");
honeydewsRGB("0xF0FFF0");
hotpinksRGB("0xFF69B4");
indianredsRGB("0xCD5C5C");
indigosRGB("0x4B0082");
ivorysRGB("0xFFFFF0");
khakisRGB("0xF0E68C");
lavendersRGB("0xE6E6FA");
lavenderblushsRGB("0xFFF0F5");
lawngreensRGB("0x7CFC00");
lemonchiffonsRGB("0xFFFACD");
lightbluesRGB("0xADD8E6");
lightcoralsRGB("0xF08080");
lightcyansRGB("0xE0FFFF");
lightgoldenrodyellowsRGB("0xFAFAD2");
lightgreensRGB("0x90EE90");
lightgreysRGB("0xD3D3D3");
lightpinksRGB("0xFFB6C1");
lightsalmonsRGB("0xFFA07A");
lightseagreensRGB("0x20B2AA");
lightskybluesRGB("0x87CEFA");
lightslategraysRGB("0x778899");
lightsteelbluesRGB("0xB0C4DE");
lightyellowsRGB("0xFFFFE0");
limesRGB("0x00FF00");
limegreensRGB("0x32CD32");
linensRGB("0xFAF0E6");
magentasRGB("0xFF00FF");
maroonsRGB("0x800000");
mediumaquamarinesRGB("0x66CDAA");
mediumbluesRGB("0x0000CD");
mediumorchidsRGB("0xBA55D3");
mediumpurplesRGB("0x9370DB");
mediumseagreensRGB("0x3CB371");
mediumslatebluesRGB("0x7B68EE");
mediumspringgreensRGB("0x00FA9A");
mediumturquoisesRGB("0x48D1CC");
mediumvioletredsRGB("0xC71585");
midnightbluesRGB("0x191970");
mintcreamsRGB("0xF5FFFA");
mistyrosesRGB("0xFFE4E1");
moccasinsRGB("0xFFE4B5");
navajowhitesRGB("0xFFDEAD");
navysRGB("0x000080");
oldlacesRGB("0xFDF5E6");
olivesRGB("0x808000");
olivedrabsRGB("0x6B8E23");
orangesRGB("0xFFA500");
orangeredsRGB("0xFF4500");
orchidsRGB("0xDA70D6");
palegoldenrodsRGB("0xEEE8AA");
palegreensRGB("0x98FB98");
paleturquoisesRGB("0xAFEEEE");
palevioletredsRGB("0xDB7093");
papayawhipsRGB("0xFFEFD5");
peachpuffsRGB("0xFFDAB9");
perusRGB("0xCD853F");
pinksRGB("0xFFC0CB");
plumsRGB("0xDDA0DD");
powderbluesRGB("0xB0E0E6");
purplesRGB("0x800080");
redsRGB("0xFF0000");
rosybrownsRGB("0xBC8F8F");
royalbluesRGB("0x4169E1");
saddlebrownsRGB("0x8B4513");
salmonsRGB("0xFA8072");
sandybrownsRGB("0xF4A460");
seagreensRGB("0x2E8B57");
seashellsRGB("0xFFF5EE");
siennasRGB("0xA0522D");
silversRGB("0xC0C0C0");
skybluesRGB("0x87CEEB");
slatebluesRGB("0x6A5ACD");
slategraysRGB("0x708090");
snowsRGB("0xFFFAFA");
springgreensRGB("0x00FF7F");
steelbluesRGB("0x4682B4");
tansRGB("0xD2B48C");
tealsRGB("0x008080");
thistlesRGB("0xD8BFD8");
tomatosRGB("0xFF6347");
turquoisesRGB("0x40E0D0");
violetsRGB("0xEE82EE");
violetredsRGB("0xD02090");
wheatsRGB("0xF5DEB3");
whitesRGB("0xFFFFFF");
whitesmokesRGB("0xF5F5F5");
yellowsRGB("0xFFFF00");
yellowgreensRGB("0x9ACD32");


Member Function Documentation

float _RGB int32_t  r,
int32_t  g,
int32_t  b
[inline]
 

Return a 32 bit value representing the passed RGB color Value contains the ARGB values at 4 8 bit values from 0 to 255.

Returns a float which gives a value color when placed in a MFFloat array (for instance, the vertex field of Mesh). Alpha is set to 255.

float sRGB const Fusion::UTF8String &  s  ) 
 

This function converts the passed string into a 32 bit integer representing a color value.

The string can be in any of the numeric format supported in the Emma file format. The upper 8 bits of the number are set to 0xff, representing an alpha value of 255. Returns a float which gives a value color when placed in a MFFloat array (for instance, the vertex field of Mesh). Alpha is set to 255.


Generated on Sat Apr 1 06:08:06 2006 for Emma Content Development Kit by  doxygen 1.4.3