RGBA Color structure.
More...
|
| | CColor (uint8_t red=255, uint8_t green=255, uint8_t blue=255, uint8_t alpha=255) |
| |
| | CColor (const CColor &inColor) |
| |
|
| CColor & | operator() (uint8_t _red, uint8_t _green, uint8_t _blue, uint8_t _alpha) |
| |
| CColor & | operator= (const CColor &newColor) |
| |
| CColor | operator~ () |
| |
| bool | operator!= (const CColor &other) const |
| |
| bool | operator== (const CColor &other) const |
| |
|
| void | toHSV (double &hue, double &saturation, double &value) const |
| | convert to hue, saturation and value More...
|
| |
| void | fromHSV (double hue, double saturation, double value) |
| | convert from hue, saturation and value More...
|
| |
| void | toHSL (double &hue, double &saturation, double &lightness) const |
| | convert to hue, saturation and lightness More...
|
| |
| void | fromHSL (double hue, double saturation, double lightness) |
| | convert from hue, saturation and lightness More...
|
| |
| uint8_t | getLuma () const |
| | get the luma of the color More...
|
| |
| uint8_t | getLightness () const |
| | get the lightness of the color More...
|
| |
| CColor |
( |
uint8_t |
red = 255, |
|
|
uint8_t |
green = 255, |
|
|
uint8_t |
blue = 255, |
|
|
uint8_t |
alpha = 255 |
|
) |
| |
|
inline |
| void fromHSL |
( |
double |
hue, |
|
|
double |
saturation, |
|
|
double |
lightness |
|
) |
| |
convert from hue, saturation and lightness
- Parameters
-
| hue | in degree [0..360] |
| saturation | normalized [0..1] |
| lightness | normalized [0..1] |
| void fromHSV |
( |
double |
hue, |
|
|
double |
saturation, |
|
|
double |
value |
|
) |
| |
convert from hue, saturation and value
- Parameters
-
| hue | in degree [0..360] |
| saturation | normalized [0..1] |
| value | normalized [0..1] |
| uint8_t getLightness |
( |
| ) |
const |
get the lightness of the color
| uint8_t getLuma |
( |
| ) |
const |
|
inline |
get the luma of the color
| bool operator!= |
( |
const CColor & |
other | ) |
const |
|
inline |
| CColor& operator() |
( |
uint8_t |
_red, |
|
|
uint8_t |
_green, |
|
|
uint8_t |
_blue, |
|
|
uint8_t |
_alpha |
|
) |
| |
|
inline |
| bool operator== |
( |
const CColor & |
other | ) |
const |
|
inline |
| void toHSL |
( |
double & |
hue, |
|
|
double & |
saturation, |
|
|
double & |
lightness |
|
) |
| const |
convert to hue, saturation and lightness
- Parameters
-
| hue | in degree [0..360] |
| saturation | normalized [0..1] |
| lightness | normalized [0..1] |
| void toHSV |
( |
double & |
hue, |
|
|
double & |
saturation, |
|
|
double & |
value |
|
) |
| const |
convert to hue, saturation and value
- Parameters
-
| hue | in degree [0..360] |
| saturation | normalized [0..1] |
| value | normalized [0..1] |
The documentation for this struct was generated from the following files: