|
Allolib
1.0
C++ Components For Interactive Multimedia
|
Public Member Functions | |
| Lab (float l=1, float a=1, float b=1) | |
| template<class T > | |
| Lab (const T *Lab) | |
| Lab (const Color &v) | |
| Lab (const Colori &v) | |
| Lab (const RGB &v) | |
| Lab (const HSV &v) | |
| Lab (const CIE_XYZ &v) | |
| Lab (const HCLab &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. | |
| Lab & | operator= (const Color &v) |
| Set from RGBA color. | |
| Lab & | operator= (const Colori &v) |
| Set from RGBA color. | |
| Lab & | operator= (const CIE_XYZ &v) |
| Set from CIE_XYZ color. | |
| Lab & | operator= (const RGB &v) |
| Set from RGB color. | |
| Lab & | operator= (const HSV &v) |
| Set from HSV color. | |
| Lab & | operator= (const HCLab &v) |
| Lab | operator* (float c) const |
| Get new Lab with value component multiplied by a scalar. | |
| Lab & | operator*= (float c) |
| Multiply lightness component by a scalar. | |
Public Attributes | |
| union { | |
| struct { | |
| float l | |
| float a | |
| < Lightness component in [0, 100] | |
| float b | |
| } | |
| float components [3] | |
| }; | |
Color represented by L* (lightness), a*, b*
Definition at line 719 of file al_Color.hpp.
|
inline |
| [in] | l | Lightness |
| [in] | a | a |
| [in] | b | b |
Definition at line 737 of file al_Color.hpp.
|
inline |
| [in] | hsv | 3-vector of Lab components |
Definition at line 741 of file al_Color.hpp.
|
inline |
| [in] | v | RGB color to convert from |
Definition at line 744 of file al_Color.hpp.
|
inline |
| [in] | v | RGB color to convert from |
Definition at line 747 of file al_Color.hpp.
|
inline |
| [in] | v | RGB color to convert from |
Definition at line 750 of file al_Color.hpp.
|
inline |
| [in] | v | HSV color to convert from |
Definition at line 753 of file al_Color.hpp.
|
inline |
| [in] | v | CIE_XYZ color to convert from |
Definition at line 756 of file al_Color.hpp.
|
inline |
| [in] | v | HCLab color to convert from |
Definition at line 759 of file al_Color.hpp.
| float al::Lab::b |
< red-green axis (red is positive, green is negative) range in [-85.9293, 97.9631] (8-bit rgb gamut)
Definition at line 725 of file al_Color.hpp.