|
FastLED 3.9.15
|
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
#include <hsv.h>
Public Member Functions | |
| constexpr | hsv8 () FL_NOEXCEPT |
| Default constructor. | |
| constexpr | hsv8 (const hsv8 &rhs) FL_NOEXCEPT |
| Allow copy construction. | |
| constexpr | hsv8 (fl::u8 ih, fl::u8 is, fl::u8 iv) FL_NOEXCEPT |
| Allow construction from hue, saturation, and value. | |
| hsv8 & | operator= (const hsv8 &rhs) FL_NOEXCEPT=default |
| Allow copy construction. | |
| FASTLED_FORCE_INLINE const fl::u8 & | operator[] (fl::u8 x) const FL_NOEXCEPT |
| Array access operator to index into the hsv8 object. | |
| FASTLED_FORCE_INLINE fl::u8 & | operator[] (fl::u8 x) FL_NOEXCEPT |
| Array access operator to index into the hsv8 object. | |
| FASTLED_FORCE_INLINE hsv8 & | setHSV (fl::u8 ih, fl::u8 is, fl::u8 iv) FL_NOEXCEPT |
| Assign new HSV values. | |
Public Attributes | ||
| union { | ||
| struct { | ||
| union { | ||
| fl::u8 | h | |
| Color hue. | ||
| fl::u8 | hue | |
| Color hue. | ||
| } | ||
| union { | ||
| fl::u8 | v | |
| Color value (brightness). | ||
| fl::u8 | val | |
| Color value (brightness). | ||
| fl::u8 | value | |
| Color value (brightness). | ||
| } | ||
| 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. | ||
| }; | ||