Inheritance diagram for Color:

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. | |
The color constants defined by default include:
| aliceblue | sRGB("0xF0F8FF"); |
| antiquewhite | sRGB("0xFAEBD7"); |
| aqua | sRGB("0x00FFFF"); |
| aquamarine | sRGB("0x7FFFD4"); |
| azure | sRGB("0xF0FFFF"); |
| beige | sRGB("0xF5F5DC"); |
| bisque | sRGB("0xFFE4C4"); |
| black | sRGB("0x000000"); |
| blanchedalmond | sRGB("0xFFEBCD"); |
| blue | sRGB("0x0000FF"); |
| blueviolet | sRGB("0x8A2BE2"); |
| brown | sRGB("0xA52A2A"); |
| burlywood | sRGB("0xDEB887"); |
| cadetblue | sRGB("0x5F9EA0"); |
| chartreuse | sRGB("0x7FFF00"); |
| chocolate | sRGB("0xD2691E"); |
| coral | sRGB("0xFF7F50"); |
| cornflowerblue | sRGB("0x6495ED"); |
| cornsilk | sRGB("0xFFF8DC"); |
| crimson | sRGB("0xDC1436"); |
| cyan | sRGB("0x00FFFF"); |
| darkblue | sRGB("0x00008B"); |
| darkcyan | sRGB("0x008B8B"); |
| darkgoldenrod | sRGB("0xB8860B"); |
| darkgray | sRGB("0xA9A9A9"); |
| darkgreen | sRGB("0x006400"); |
| darkkhaki | sRGB("0xBDB76B"); |
| darkmagenta | sRGB("0x8B008B"); |
| darkolivegreen | sRGB("0x556B2F"); |
| darkorange | sRGB("0xFF8C00"); |
| darkorchid | sRGB("0x9932CC"); |
| darkred | sRGB("0x8B0000"); |
| darksalmon | sRGB("0xE9967A"); |
| darkseagreen | sRGB("0x8FBC8F"); |
| darkslateblue | sRGB("0x483D8B"); |
| darkslategray | sRGB("0x2F4F4F"); |
| darkturquoise | sRGB("0x00CED1"); |
| darkviolet | sRGB("0x9400D3"); |
| deeppink | sRGB("0xFF1493"); |
| deepskyblue | sRGB("0x00BFFF"); |
| dimgray | sRGB("0x696969"); |
| dodgerblue | sRGB("0x1E90FF"); |
| feldspar | sRGB("0xD19275"); |
| firebrick | sRGB("0xB22222"); |
| floralwhite | sRGB("0xFFFAF0"); |
| forestgreen | sRGB("0x228B22"); |
| fuchsia | sRGB("0xFF00FF"); |
| gainsboro | sRGB("0xDCDCDC"); |
| ghostwhite | sRGB("0xF8F8FF"); |
| gold | sRGB("0xFFD700"); |
| goldenrod | sRGB("0xDAA520"); |
| green | sRGB("0x008000"); |
| greenyellow | sRGB("0xADFF2F"); |
| honeydew | sRGB("0xF0FFF0"); |
| hotpink | sRGB("0xFF69B4"); |
| indianred | sRGB("0xCD5C5C"); |
| indigo | sRGB("0x4B0082"); |
| ivory | sRGB("0xFFFFF0"); |
| khaki | sRGB("0xF0E68C"); |
| lavender | sRGB("0xE6E6FA"); |
| lavenderblush | sRGB("0xFFF0F5"); |
| lawngreen | sRGB("0x7CFC00"); |
| lemonchiffon | sRGB("0xFFFACD"); |
| lightblue | sRGB("0xADD8E6"); |
| lightcoral | sRGB("0xF08080"); |
| lightcyan | sRGB("0xE0FFFF"); |
| lightgoldenrodyellow | sRGB("0xFAFAD2"); |
| lightgreen | sRGB("0x90EE90"); |
| lightgrey | sRGB("0xD3D3D3"); |
| lightpink | sRGB("0xFFB6C1"); |
| lightsalmon | sRGB("0xFFA07A"); |
| lightseagreen | sRGB("0x20B2AA"); |
| lightskyblue | sRGB("0x87CEFA"); |
| lightslategray | sRGB("0x778899"); |
| lightsteelblue | sRGB("0xB0C4DE"); |
| lightyellow | sRGB("0xFFFFE0"); |
| lime | sRGB("0x00FF00"); |
| limegreen | sRGB("0x32CD32"); |
| linen | sRGB("0xFAF0E6"); |
| magenta | sRGB("0xFF00FF"); |
| maroon | sRGB("0x800000"); |
| mediumaquamarine | sRGB("0x66CDAA"); |
| mediumblue | sRGB("0x0000CD"); |
| mediumorchid | sRGB("0xBA55D3"); |
| mediumpurple | sRGB("0x9370DB"); |
| mediumseagreen | sRGB("0x3CB371"); |
| mediumslateblue | sRGB("0x7B68EE"); |
| mediumspringgreen | sRGB("0x00FA9A"); |
| mediumturquoise | sRGB("0x48D1CC"); |
| mediumvioletred | sRGB("0xC71585"); |
| midnightblue | sRGB("0x191970"); |
| mintcream | sRGB("0xF5FFFA"); |
| mistyrose | sRGB("0xFFE4E1"); |
| moccasin | sRGB("0xFFE4B5"); |
| navajowhite | sRGB("0xFFDEAD"); |
| navy | sRGB("0x000080"); |
| oldlace | sRGB("0xFDF5E6"); |
| olive | sRGB("0x808000"); |
| olivedrab | sRGB("0x6B8E23"); |
| orange | sRGB("0xFFA500"); |
| orangered | sRGB("0xFF4500"); |
| orchid | sRGB("0xDA70D6"); |
| palegoldenrod | sRGB("0xEEE8AA"); |
| palegreen | sRGB("0x98FB98"); |
| paleturquoise | sRGB("0xAFEEEE"); |
| palevioletred | sRGB("0xDB7093"); |
| papayawhip | sRGB("0xFFEFD5"); |
| peachpuff | sRGB("0xFFDAB9"); |
| peru | sRGB("0xCD853F"); |
| pink | sRGB("0xFFC0CB"); |
| plum | sRGB("0xDDA0DD"); |
| powderblue | sRGB("0xB0E0E6"); |
| purple | sRGB("0x800080"); |
| red | sRGB("0xFF0000"); |
| rosybrown | sRGB("0xBC8F8F"); |
| royalblue | sRGB("0x4169E1"); |
| saddlebrown | sRGB("0x8B4513"); |
| salmon | sRGB("0xFA8072"); |
| sandybrown | sRGB("0xF4A460"); |
| seagreen | sRGB("0x2E8B57"); |
| seashell | sRGB("0xFFF5EE"); |
| sienna | sRGB("0xA0522D"); |
| silver | sRGB("0xC0C0C0"); |
| skyblue | sRGB("0x87CEEB"); |
| slateblue | sRGB("0x6A5ACD"); |
| slategray | sRGB("0x708090"); |
| snow | sRGB("0xFFFAFA"); |
| springgreen | sRGB("0x00FF7F"); |
| steelblue | sRGB("0x4682B4"); |
| tan | sRGB("0xD2B48C"); |
| teal | sRGB("0x008080"); |
| thistle | sRGB("0xD8BFD8"); |
| tomato | sRGB("0xFF6347"); |
| turquoise | sRGB("0x40E0D0"); |
| violet | sRGB("0xEE82EE"); |
| violetred | sRGB("0xD02090"); |
| wheat | sRGB("0xF5DEB3"); |
| white | sRGB("0xFFFFFF"); |
| whitesmoke | sRGB("0xF5F5F5"); |
| yellow | sRGB("0xFFFF00"); |
| yellowgreen | sRGB("0x9ACD32"); |
|
||||||||||||||||
|
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. |
|
|
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. |
1.4.3