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