Color in HSL space.
More...
#include <color.h>
|
| Hsl (const double &, const double &, const double &) |
| Create a color in HSL space. More...
|
|
| Hsl (const Color &) |
| Create a color in HSL space. More...
|
|
Color | ToColor () const |
| Convert a color in HSL space to RGB space.
|
|
|
static double | ToRgb (double, double, double) |
| Conversion function. More...
|
|
|
double | l = 0.0 |
| Hue, saturation, luminance.
|
|
◆ Hsl() [1/2]
Hsl::Hsl |
( |
const double & |
h, |
|
|
const double & |
s, |
|
|
const double & |
l |
|
) |
| |
|
explicit |
Create a color in HSL space.
- Parameters
-
h | Hue. |
s | Saturation. |
l | Lightness. |
◆ Hsl() [2/2]
Hsl::Hsl |
( |
const Color & |
c | ) |
|
|
explicit |
Create a color in HSL space.
- Parameters
-
◆ ToRgb()
double Hsl::ToRgb |
( |
double |
a, |
|
|
double |
b, |
|
|
double |
h |
|
) |
| |
|
staticprotected |
Conversion function.
- Parameters
-