|
| Color (float r, float g, float b, float a=1.f) |
|
template<class T > |
| Color (const T *rgba) |
|
| Color (float gray=1.f, float a=1.f) |
|
| Color (const Colori &c) |
|
| Color (const HSV &hsv, float a=1.f) |
|
| Color (const RGB &rgb, float a=1.f) |
|
| Color (const CIE_XYZ &xyz, float a=1.f) |
|
| Color (const Lab &lab, float a=1.f) |
|
| Color (const HCLab &hclab, float a=1.f) |
|
| Color (const Luv &luv, float a=1.f) |
|
| Color (const HCLuv &hcluv, float a=1.f) |
|
float & | operator[] (int i) |
| Set color component at index with no bounds checking.
|
|
const float & | operator[] (int i) const |
| Get color component at index with no bounds checking.
|
|
RGB & | rgb () |
|
const RGB & | rgb () const |
|
Color & | set (const Color &c, float al) |
| Set RGB from another color and alpha from argument.
|
|
Color & | set (float re, float gr, float bl, float al) |
| Set RGBA components.
|
|
Color & | set (float re, float gr, float bl) |
| Set RGB components.
|
|
Color & | set (float v) |
| Set from gray value.
|
|
Color & | set (float v, float al) |
| Set from gray value and alpha.
|
|
template<class T > |
Color & | set (const T *rgba) |
| Set from an array of RGBA components.
|
|
Color & | operator= (float v) |
| Set from gray value.
|
|
Color & | operator= (double v) |
|
Color & | operator= (const Colori &v) |
| Set components from integer color.
|
|
Color & | operator= (const HSV &v) |
| Set RGB components from HSV.
|
|
Color & | operator= (const RGB &v) |
| Set RGB components from RGB.
|
|
Color & | operator= (const CIE_XYZ &v) |
| Set RGB components from CIE_XYZ.
|
|
Color & | operator= (const Lab &v) |
| Set RGB components from Lab.
|
|
Color & | operator= (const HCLab &v) |
| Set RGB components from HCLab.
|
|
Color & | operator= (const Luv &v) |
| Set RGB components from Luv.
|
|
Color & | operator= (const HCLuv &v) |
| Set RGB components from HCLuv.
|
|
bool | operator== (const Color &v) const |
| Return true if all components are equal, false otherwise.
|
|
bool | operator!= (const Color &v) const |
| Return true if components are not equal, false otherwise.
|
|
Color & | operator+= (const Color &v) |
|
Color & | operator-= (const Color &v) |
|
Color & | operator*= (const Color &v) |
|
Color & | operator/= (const Color &v) |
|
Color & | operator+= (float v) |
|
Color & | operator-= (float v) |
|
Color & | operator*= (float v) |
|
Color & | operator/= (float v) |
|
Color | operator- () const |
|
Color | operator+ (const Color &v) const |
|
Color | operator- (const Color &v) const |
|
Color | operator* (const Color &v) const |
|
Color | operator/ (const Color &v) const |
|
Color | operator+ (float v) const |
|
Color | operator- (float v) const |
|
Color | operator* (float v) const |
|
Color | operator/ (float v) const |
|
Color & | clamp (float max=1.f) |
| Clamp all components into [0,max] range.
|
|
Color | inverse () const |
| Returns inverted color.
|
|
Color & | invert () |
| Invert RGB components.
|
|
float | luminance () const |
| Returns luminance value.
|
|
Color | blackAndWhite () const |
| Returns nearest black or white color.
|
|
Color | mix (const Color &c, float amt=0.5f) const |
| Returns self linearly mixed with another color (0 = none)
|
|
Color represented by red, green, blue, and alpha components
Definition at line 68 of file al_Color.hpp.