|
Allolib
1.0
C++ Components For Interactive Multimedia
|
Public Member Functions | |
| HCLuv (float h=1, float c=1, float l=1) | |
| template<class T > | |
| HCLuv (const T *HCLuv) | |
| HCLuv (const Color &w) | |
| HCLuv (const Colori &w) | |
| HCLuv (const RGB &w) | |
| HCLuv (const HSV &w) | |
| HCLuv (const CIE_XYZ &w) | |
| HCLuv (const Luv &w) | |
| 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. | |
| HCLuv & | operator= (const Color &w) |
| Set from RGBA color. | |
| HCLuv & | operator= (const Colori &w) |
| Set from RGBA color. | |
| HCLuv & | operator= (const RGB &w) |
| Set from RGB color. | |
| HCLuv & | operator= (const HSV &w) |
| Set from HSV color. | |
| HCLuv & | operator= (const CIE_XYZ &w) |
| Set from CIE_XYZ color. | |
| HCLuv & | operator= (const Luv &w) |
| Set from Luv color. | |
| HCLuv | operator* (float a) const |
| Get new HCLuv with value component multiplied by a scalar. | |
| HCLuv & | operator*= (float a) |
| Multiply luminance component by a scalar. | |
| HCLuv & | rotateHue (float dh) |
| Rotate hue in interval [0, 1) | |
| HCLuv & | wrapHue () |
| Wrap hue value into valid interval [0, 1) | |
Public Attributes | |
| union { | |
| struct { | |
| float h | |
| float c | |
| < hue component in [0, 1] | |
| float l | |
| } | |
| float components [3] | |
| }; | |
Color represented by hue, chroma, luminance(uv)
Definition at line 970 of file al_Color.hpp.
|
inline |
| [in] | h | hue |
| [in] | c | chroma |
| [in] | l | luminance(uv) |
Definition at line 987 of file al_Color.hpp.
|
inline |
| [in] | hcl | 3-vector of HCLuv components |
Definition at line 991 of file al_Color.hpp.
|
inline |
| [in] | w | RGB color to convert from |
Definition at line 994 of file al_Color.hpp.
|
inline |
| [in] | w | RGB color to convert from |
Definition at line 997 of file al_Color.hpp.
|
inline |
| [in] | w | RGB color to convert from |
Definition at line 1000 of file al_Color.hpp.
|
inline |
| [in] | w | HSV color to convert from |
Definition at line 1003 of file al_Color.hpp.
|
inline |
| [in] | v | CIE_XYZ color to convert from |
Definition at line 1006 of file al_Color.hpp.
|
inline |
| [in] | w | Luv color to convert from |
Definition at line 1009 of file al_Color.hpp.
| float al::HCLuv::l |
< chroma component range in [0, 1]
Definition at line 978 of file al_Color.hpp.