A structure containing a HSLA value. More...
#include <hsla.h>
Public Member Functions | |
HSLA (double h=0.0, double s=0.0, double l=0.0, double a=0.0) | |
HSLA (const RGBA &rgb) | |
double | operator[] (unsigned index) |
HSLA & | operator= (const RGBA &rgb) |
operator RGBA () | |
Public Attributes | |
double | hue |
double | saturation |
double | lightness |
double | alpha |
A structure containing a HSLA value.
Papyrus::HSLA::HSLA | ( | double | h = 0.0 , |
|
double | s = 0.0 , |
|||
double | l = 0.0 , |
|||
double | a = 0.0 | |||
) |
Papyrus::HSLA::HSLA | ( | const RGBA & | rgb | ) |
Papyrus::HSLA::operator RGBA | ( | ) |
References alpha, Papyrus::RGBA::alpha, Papyrus::RGBA::blue, Papyrus::RGBA::green, Papyrus::hsl_to_rgb(), hue, lightness, Papyrus::RGBA::red, and saturation.
References Papyrus::RGBA::alpha, alpha, Papyrus::RGBA::blue, Papyrus::RGBA::green, hue, lightness, Papyrus::RGBA::red, Papyrus::rgb_to_hsl(), and saturation.
double Papyrus::HSLA::operator[] | ( | unsigned | index | ) |
References alpha, hue, lightness, and saturation.
double Papyrus::HSLA::alpha |
Referenced by operator RGBA(), operator=(), and operator[]().
double Papyrus::HSLA::hue |
Referenced by operator RGBA(), operator=(), and operator[]().
double Papyrus::HSLA::lightness |
Referenced by operator RGBA(), operator=(), and operator[]().
double Papyrus::HSLA::saturation |
Referenced by operator RGBA(), operator=(), and operator[]().