I want to reduce the saturation of an entire strip that is being filled from a gradient palette over 1-2 hours with a potentiometer.
Which FastLED function/method lowers/raises the saturation?
Thanks!
I want to reduce the saturation of an entire strip that is being filled from a gradient palette over 1-2 hours with a potentiometer.
Which FastLED function/method lowers/raises the saturation?
Thanks!
You can apply a certain amount (0-255) of de-saturation with something like this:
CRGB color = leds[i];
uint8_t val = color.getLuma();
CRGB mono = CRGB(val, val, val);
leds[i] = blend( color, mono, desaturation);