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

◆ setHue()

FASTLED_FORCE_INLINE CRGB & CRGB::setHue ( uint8_t hue)
inline

Allow assignment from just a hue.

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

Parameters
huecolor hue

Definition at line 185 of file crgb.h.

186 {
187 hsv2rgb_rainbow( CHSV(hue, 255, 255), *this);
188 return *this;
189 }
void hsv2rgb_rainbow(const struct CHSV &hsv, struct CRGB &rgb)
Forward declaration of hsv2rgb_rainbow here, to avoid circular dependencies.

References CRGB(), FASTLED_FORCE_INLINE, and hsv2rgb_rainbow().

+ Here is the call graph for this function: