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

◆ setHue()

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

Allow assignment from just a hue.

Set hue only (saturation and value set to max) and convert to RGB.

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

Parameters
huecolor hue

Definition at line 56 of file crgb_extra.cpp.hpp.

56 {
57 CHSV hsv_color(hue, 255, 255);
58 hsv2rgb_rainbow(hsv_color, *this);
59 return *this;
60}
uint8_t hue
Definition advanced.h:94
fl::hsv8 CHSV
Definition chsv.h:11
CRGB hsv2rgb_rainbow(const CHSV &hsv)

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

+ Here is the call graph for this function: