|
FastLED 3.9.15
|
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
#include <hsv.h>
Public Member Functions | |
| constexpr | CHSV () |
| Default constructor. | |
| constexpr | CHSV (const CHSV &rhs) noexcept |
| Allow copy construction. | |
| constexpr | CHSV (fl::u8 ih, fl::u8 is, fl::u8 iv) |
| Allow construction from hue, saturation, and value. | |
| CHSV & | operator= (const CHSV &rhs)=default |
| Allow copy construction. | |
| fl::u8 & | operator[] (fl::u8 x) |
| Array access operator to index into the CHSV object. | |
| const fl::u8 & | operator[] (fl::u8 x) const |
| Array access operator to index into the CHSV object. | |
| CHSV & | setHSV (fl::u8 ih, fl::u8 is, fl::u8 iv) |
| Assign new HSV values. | |
Public Attributes | ||
| union { | ||
| struct { | ||
| union { | ||
| fl::u8 | v | |
| Color value (brightness). | ||
| fl::u8 | val | |
| Color value (brightness). | ||
| fl::u8 | value | |
| Color value (brightness). | ||
| } | ||
| union { | ||
| fl::u8 | h | |
| Color hue. | ||
| fl::u8 | hue | |
| Color hue. | ||
| } | ||
| union { | ||
| fl::u8 | s | |
| Color saturation. | ||
| fl::u8 | sat | |
| Color saturation. | ||
| fl::u8 | saturation | |
| Color saturation. | ||
| } | ||
| } | ||
| fl::u8 | raw [3] | |
| Access the hue, saturation, and value data as an array. | ||
| }; | ||