jjPALCOLOR struct
A single RGB palette color.
Public static functions
- static void Create(void* self)
- Constructs a black color in place.
-
static void CreateFromRgb(std::
uint8_t red, std:: uint8_t green, std:: uint8_t blue, void* self) - Constructs a color from red, green and blue components in place.
Public functions
-
auto getHue() -> std::
uint8_t - Returns the hue component of the color.
-
auto getSat() -> std::
uint8_t - Returns the saturation component of the color.
-
auto getLight() -> std::
uint8_t - Returns the lightness component of the color.
-
void swizzle(std::
uint32_t redc, std:: uint32_t greenc, std:: uint32_t bluec) - Reorders the color channels by the given source channels.
-
void setHSL(std::
int32_t hue, std:: uint8_t sat, std:: uint8_t light) - Sets the color from hue, saturation and lightness.
- auto operator=(const jjPALCOLOR& other) -> jjPALCOLOR&
- auto operator==(const jjPALCOLOR& other) -> bool
Public variables
-
std::
uint8_t red - Red component.
-
std::
uint8_t green - Green component.
-
std::
uint8_t blue - Blue component.