52 inline uint8_t&
operator[] (uint8_t x) __attribute__((always_inline))
58 inline const uint8_t&
operator[] (uint8_t x)
const __attribute__((always_inline))
65 constexpr inline CHSV() __attribute__((always_inline)):
h(0),
s(0),
v(0) { }
71 constexpr inline CHSV( uint8_t ih, uint8_t is, uint8_t iv) __attribute__((always_inline))
77 constexpr inline CHSV(
const CHSV& rhs) noexcept :
h(rhs.h),
s(rhs.s),
v(rhs.v) { }
87 inline CHSV&
setHSV(uint8_t ih, uint8_t is, uint8_t iv) __attribute__((always_inline))
HSVHue
Pre-defined hue values for CHSV objects.
@ HUE_PURPLE
Purple (270°)
Implements the FastLED namespace macros.
#define FASTLED_NAMESPACE_END
End of the FastLED namespace.
#define FASTLED_NAMESPACE_BEGIN
Start of the FastLED namespace.
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
CHSV & operator=(const CHSV &rhs)=default
Allow copy construction.
uint8_t v
Color value (brightness).
uint8_t raw[3]
Access the hue, saturation, and value data as an array.
constexpr CHSV()
Default constructor.
uint8_t sat
Color saturation.
constexpr CHSV(const CHSV &rhs) noexcept
Allow copy construction.
uint8_t value
Color value (brightness).
uint8_t saturation
Color saturation.
uint8_t s
Color saturation.
constexpr CHSV(uint8_t ih, uint8_t is, uint8_t iv)
Allow construction from hue, saturation, and value.
uint8_t val
Color value (brightness).
uint8_t & operator[](uint8_t x)
Array access operator to index into the CHSV object.
CHSV & setHSV(uint8_t ih, uint8_t is, uint8_t iv)
Assign new HSV values.