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

◆ setHue()

FASTLED_FORCE_INLINE CRGB & CRGB::setHue ( fl::u8 hue)
inline

Allow assignment from just a hue.

Saturation and value (brightness) are set automatically to max.

Parameters
huecolor hue

Definition at line 253 of file crgb.h.

254 {
255 hsv2rgb_dispatch( CHSV(hue, 255, 255), *this);
256 return *this;
257 }
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: