47 inline uint8_t&
operator[] (uint8_t x) __attribute__((always_inline))
53 inline const uint8_t&
operator[] (uint8_t x)
const __attribute__((always_inline))
60 constexpr inline CHSV() __attribute__((always_inline)):
h(0),
s(0),
v(0) { }
66 constexpr inline CHSV( uint8_t ih, uint8_t is, uint8_t iv) __attribute__((always_inline))
72 constexpr inline CHSV(
const CHSV& rhs) noexcept :
h(rhs.h),
s(rhs.s),
v(rhs.v) { }
82 inline CHSV&
setHSV(uint8_t ih, uint8_t is, uint8_t iv) __attribute__((always_inline))
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.