HSLA color class. More...
#include <gelColor.h>
Public Member Functions | |
GelHSLA () | |
Default constructor. | |
GelHSLA (int hue, int sat, int lum, int alpha) | |
Full color constructor. | |
GelHSLA (int value) | |
Single color constructor. | |
GelHSLA (const GelRGBA &col) | |
GelRGBA constructor. | |
GelHSLA | operator+ (const GelHSLA &c) const |
GelHSLA | operator- (const GelHSLA &c) const |
GelHSLA | operator* (const GelHSLA &c) const |
GelHSLA | operator/ (const GelHSLA &c) const |
GelHSLA | operator= (const GelHSLA &c) |
GelHSLA | operator+= (const GelHSLA &c) |
GelHSLA | operator-= (const GelHSLA &c) |
GelHSLA | operator*= (const GelHSLA &c) |
GelHSLA | operator/= (const GelHSLA &c) |
bool | operator== (const GelHSLA &c) const |
bool | operator!= (const GelHSLA &c) const |
Public Attributes | |
int | h |
Hue. | |
int | s |
Saturation. | |
int | l |
Luminance. | |
int | a |
Alpha. |
HSLA color class.
This class stores color data as hue, saturation, luminance and alpha channels.
Each channel is an integer. Range: 0-255.
gel::GelHSLA::GelHSLA | ( | ) | [inline] |
Default constructor.
gel::GelHSLA::GelHSLA | ( | int | hue, |
int | sat, | ||
int | lum, | ||
int | alpha | ||
) | [inline] |
Full color constructor.
hue | : Hue. |
sat | : Saturation. |
lum | : Luminance. |
alpha | : Alpha. |
gel::GelHSLA::GelHSLA | ( | int | value | ) | [inline] |
Single color constructor.
value | : Value to apply to all components. |
bool gel::GelHSLA::operator== | ( | const GelHSLA & | c | ) | const [inline] |
bool gel::GelHSLA::operator!= | ( | const GelHSLA & | c | ) | const [inline] |
int gel::GelHSLA::h |
Hue.
int gel::GelHSLA::s |
Saturation.
int gel::GelHSLA::l |
Luminance.
int gel::GelHSLA::a |
Alpha.
API Documentation by Mark D. Procarione | Generated by |