FastLED 3.9.15
Loading...
Searching...
No Matches

◆ setHSV()

FASTLED_FORCE_INLINE CRGB & CRGB::setHSV ( fl::u8 hue,
fl::u8 sat,
fl::u8 val )
inline

Allow assignment from hue, saturation, and value.

Parameters
huecolor hue
satcolor saturation
valcolor value (brightness)

Definition at line 244 of file crgb.h.

245 {
246 hsv2rgb_dispatch( CHSV(hue, sat, val), *this);
247 return *this;
248 }
uint8_t hue
FASTLED_FORCE_INLINE void hsv2rgb_dispatch(const struct CHSV *phsv, struct CRGB *prgb, int numLeds)
HSV conversion function selection based on compile-time defines This allows users to configure which ...
Definition crgb.h:57

References CRGB(), FASTLED_FORCE_INLINE, hsv2rgb_dispatch(), and hue.

+ Here is the call graph for this function: