42 {
43
47
49 uint32_t now = millis();
50 uint32_t hue_offset = (now / 100) % 256;
53 }
54
55 CHSV hsv(
hue, saturation, value);
56
60
62}
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
UISlider saturationSlider("Saturation", 255, 0, 255, 1)
UISlider valueSlider("Value", 255, 0, 255, 1)
UICheckbox autoHue("Auto Hue", true)
UISlider hueSlider("Hue", 128, 0, 255, 1)
CRGB hsv2rgb_rainbow(const struct CHSV &hsv)
CRGB hsv2rgb_spectrum(const struct CHSV &hsv)
Inline version of hsv2rgb_spectrum which returns a CRGB object.
void hsv2rgb_fullspectrum(const struct CHSV &hsv, CRGB &rgb)
Representation of an HSV pixel (hue, saturation, value (aka brightness)).