|
| LCHab () |
| Default constructor initializes LCHab to black (0,0,0)
|
|
| LCHab (const double l, const double c, const double h) |
| Construct LCHab from component values.
|
|
| LCHab (const Lab &lab) |
| Construct LCHab from Lab color.
|
|
| LCHab (const RGB &rgb) |
| Construct LCHab from RGB color.
|
|
| LCHab (const HSL &hsl) |
| Construct LCHab from HSL color.
|
|
| LCHab (const XYZ &xyz, const std::array< double, 3 > &white_point={ 0.95047, 1, 1.08883 }) |
| Construct LCHab from XYZ color.
|
|
bool | operator== (const LCHab &other) const |
| equality operator for LCHab colors
|
|
bool | operator!= (const LCHab &other) const |
| inequality operator for LCHab colors
|
|
double | l () const |
| Get lightness [0,100].
|
|
double | c () const |
| Get chroma [0,∞)
|
|
double | h () const |
| Get hue in degrees [0,360)
|
|
LCHab color space representation (CIE L*C*h)
LCHab color space representation (CIE L*C*h).
Cylindrical representation of Lab color space:
- L: Lightness [0, 100]
- C: Chroma [0, ∞)
- H: Hue in degrees [0, 360)
Useful for intuitive manipulation of color lightness, chroma, and hue. Provides conversion constructors for Lab, RGB, HSL, and XYZ. Most conversions use the D65 reference white point by default.
- See also
- Lab, RGB, HSL, XYZ for conversions.
Definition at line 574 of file colors.h.