|
iMSTK
Interactive Medical Simulation Toolkit
|
#include <imstkColor.h>

Public Member Functions | |
| Color (const double red, const double green, const double blue, const double alpha=1.0) | |
| Color (const double *rgba_color) | |
| Color (const Color &color, const double alpha) | |
| Color & | operator= (const Color &p_color) |
| Equality operator. | |
| operator Eigen::Matrix< unsigned char, 3, 1 > () | |
| operator Eigen::Matrix< unsigned char, 4, 1 > () | |
| double | operator() (const int p_i) const |
| returns the color value given with the index | |
| void | setValue (const double p_red, const double p_green, const double p_blue, const double p_alpha=1.0) |
| set RGB color | |
| void | getValue (double color[4]) |
| get RGB color | |
| const double * | getValue () const |
| get RGB color | |
| std::string | rgbHex () |
Static Public Member Functions | |
| static Color | darken (const Color color, const double factor) |
| static Color | lighten (const Color color, const double factor) |
| static Color | clamp (const Color color, const Color min, const Color max) |
| static Color | lerpRgba (const Color &start, const Color &end, const double t) |
| interpolate between two colors by ratio t | |
| static Color | lerpRgb (const Color &start, const Color &end, const double t) |
Public Attributes | |
| union { | |
| double rgba [4] | |
| struct { | |
| double r | |
| double g | |
| double b | |
| double a | |
| } | |
| }; | |
Static Public Attributes | |
| static Color | White |
| Various commonly used colors. | |
| static Color | Black |
| static Color | DarkGray |
| static Color | LightGray |
| static Color | Blue |
| static Color | Green |
| static Color | Red |
| static Color | Pink |
| static Color | Orange |
| static Color | Yellow |
| static Color | Teal |
| static Color | Marigold |
| static Color | Bone |
| static Color | YellowBone |
| static Color | Blood |
| static Color | LightSkin |
| static Color | DarkSkin |
Friends | |
| std ::ostream & | operator<< (std::ostream &os, const Color &c) |
| Bitwise operator. | |
Color in RGB space.
Definition at line 24 of file imstkColor.h.
| std::string imstk::Color::rgbHex | ( | ) |
the RGB hex in string format
Definition at line 165 of file imstkColor.cpp.

1.8.13