RGBA Color structure.
More...
#include <ccolor.h>
|
| CColor (uint8_t red, uint8_t green, uint8_t blue, 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) |
|
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 |
|
uint8_t | getLightness () const |
|
|
uint8_t | red {255} |
| red component [0..255]
|
|
uint8_t | green {255} |
| green component [0..255]
|
|
uint8_t | blue {255} |
| blue component [0..255]
|
|
uint8_t | alpha {255} |
| alpha component [0..255]
|
|
◆ fromHSL()
void VSTGUI::CColor::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] |
◆ fromHSV()
void VSTGUI::CColor::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] |
◆ getLightness()
uint8_t VSTGUI::CColor::getLightness |
( |
| ) |
const |
get the lightness of the color
◆ getLuma()
uint8_t VSTGUI::CColor::getLuma |
( |
| ) |
const |
|
inline |
get the luma of the color
◆ toHSL()
void VSTGUI::CColor::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] |
◆ toHSV()
void VSTGUI::CColor::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:
- C:/RackAFX_v7/ASPIK_SDK/vstgui4/vstgui/lib/ccolor.h
- C:/RackAFX_v7/ASPIK_SDK/vstgui4/vstgui/lib/ccolor.cpp