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

◆ setHSV()

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

Allow assignment from hue, saturation, and value.

Parameters
huecolor hue
satcolor saturation
valcolor value (brightness)

Definition at line 176 of file crgb.h.

177 {
178 hsv2rgb_rainbow( CHSV(hue, sat, val), *this);
179 return *this;
180 }
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: