Color space conversion.
More...
#include <ccColorTypes.h>
|
static Rgb | hsl2rgb (float H, float S, float L) |
| Converts a HSL color to RGB color space. More...
|
|
static QCC_DB_LIB_API Rgb | hsv2rgb (float H, float S, float V) |
| Converts a HSV color to RGB color space. More...
|
|
◆ hsl2rgb()
static Rgb ccColor::Convert::hsl2rgb |
( |
float |
H, |
|
|
float |
S, |
|
|
float |
L |
|
) |
| |
|
inlinestatic |
Converts a HSL color to RGB color space.
- Parameters
-
H | [out] hue [0;360[ |
S | [out] saturation [0;1] |
L | [out] light [0;1] |
- Returns
- RGB color (unsigned byte)
◆ hsv2rgb()
Rgb ccColor::Convert::hsv2rgb |
( |
float |
H, |
|
|
float |
S, |
|
|
float |
V |
|
) |
| |
|
static |
Converts a HSV color to RGB color space.
- Parameters
-
H | [out] hue [0;360[ |
S | [out] saturation [0;1] |
V | [out] value [0;1] |
- Returns
- RGB color (unsigned byte)
The documentation for this class was generated from the following files:
- ccColorTypes.h
- ccColorTypes.cpp