|
Allolib
1.0
C++ Components For Interactive Multimedia
|
Public Member Functions | |
| HCLab (float h=1, float c=1, float l=1) | |
| template<class T > | |
| HCLab (const T *HCLab) | |
| HCLab (const Color &v) | |
| HCLab (const Colori &v) | |
| HCLab (const RGB &v) | |
| HCLab (const HSV &v) | |
| HCLab (const CIE_XYZ &v) | |
| HCLab (const Lab &v) | |
| 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. | |
| HCLab & | operator= (const Color &v) |
| Set from RGBA color. | |
| HCLab & | operator= (const Colori &v) |
| Set from RGBA color. | |
| HCLab & | operator= (const RGB &v) |
| Set from RGB color. | |
| HCLab & | operator= (const HSV &v) |
| Set from HSV color. | |
| HCLab & | operator= (const CIE_XYZ &v) |
| Set from CIE_XYZ color. | |
| HCLab & | operator= (const Lab &v) |
| Set from Lab color. | |
| HCLab | operator* (float a) const |
| Get new HCLab with value component multiplied by a scalar. | |
| HCLab & | operator*= (float a) |
| Multiply luminance component by a scalar. | |
| HCLab & | rotateHue (float dh) |
| Rotate hue in interval [0, 1) | |
| HCLab & | 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(ab)
Definition at line 797 of file al_Color.hpp.
|
inline |
| [in] | h | hue |
| [in] | c | chroma |
| [in] | l | luminance(ab) |
Definition at line 814 of file al_Color.hpp.
|
inline |
| [in] | hcl | 3-vector of HCLab components |
Definition at line 818 of file al_Color.hpp.
|
inline |
| [in] | v | RGB color to convert from |
Definition at line 821 of file al_Color.hpp.
|
inline |
| [in] | v | RGB color to convert from |
Definition at line 824 of file al_Color.hpp.
|
inline |
| [in] | v | RGB color to convert from |
Definition at line 827 of file al_Color.hpp.
|
inline |
| [in] | v | HSV color to convert from |
Definition at line 830 of file al_Color.hpp.
|
inline |
| [in] | v | CIE_XYZ color to convert from |
Definition at line 833 of file al_Color.hpp.
|
inline |
| [in] | v | Lab color to convert from |
Definition at line 836 of file al_Color.hpp.
| float al::HCLab::h |
ranges normalized to 8-bit RGB gamut using 16million RGB color image from http://brucelindbloom.com
Definition at line 802 of file al_Color.hpp.
| float al::HCLab::l |
< chroma component range in [0, 1]
Definition at line 805 of file al_Color.hpp.