#include <HSLAPixel.h>
|
| HSLAPixel () |
| Constructs a default HSLAPixel. More...
|
|
| HSLAPixel (double hue, double saturation, double luminance) |
| Constructs an opaque HSLAPixel with the given hue, saturation, and luminance values. More...
|
|
| HSLAPixel (double hue, double saturation, double luminance, double alpha) |
| Constructs an HSLAPixel with the given hue, saturation, luminance, and alpha values. More...
|
|
|
double | h |
| Hue of the pixel, in degrees [0, 360). More...
|
|
double | s |
| Saturation of the pixel, [0, 1]. More...
|
|
double | l |
| Luminance of the pixel, [0, 1]. More...
|
|
double | a |
| Alpha of the pixel, [0, 1]. More...
|
|
◆ HSLAPixel() [1/3]
cs225::HSLAPixel::HSLAPixel |
( |
| ) |
|
Constructs a default HSLAPixel.
A default pixel is completely opaque (non-transparent) and white. Opaque implies that the alpha component of the pixel is 1.0. Lower alpha values are (semi-)transparent.
◆ HSLAPixel() [2/3]
cs225::HSLAPixel::HSLAPixel |
( |
double |
hue, |
|
|
double |
saturation, |
|
|
double |
luminance |
|
) |
| |
Constructs an opaque HSLAPixel with the given hue, saturation, and luminance values.
- Parameters
-
hue | Hue value for the new pixel, in degrees [0, 360). |
saturation | Saturation value for the new pixel, [0, 1]. |
luminance | Luminance value for the new pixel, [0, 1]. |
◆ HSLAPixel() [3/3]
cs225::HSLAPixel::HSLAPixel |
( |
double |
hue, |
|
|
double |
saturation, |
|
|
double |
luminance, |
|
|
double |
alpha |
|
) |
| |
Constructs an HSLAPixel with the given hue, saturation, luminance, and alpha values.
- Parameters
-
hue | Hue value for the new pixel, in degrees [0, 360). |
saturation | Saturation value for the new pixel, [0, 1]. |
luminance | Luminance value for the new pixel, [0, 1]. |
alpha | Alpha value for the new pixel, [0, 1]. |
double cs225::HSLAPixel::a |
Alpha of the pixel, [0, 1].
double cs225::HSLAPixel::h |
Hue of the pixel, in degrees [0, 360).
double cs225::HSLAPixel::l |
Luminance of the pixel, [0, 1].
double cs225::HSLAPixel::s |
Saturation of the pixel, [0, 1].
The documentation for this class was generated from the following files: