I want to reduce the saturation of an entire strip that is being filled

fastled-support
gplus
(Andreas Hopf) #1

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!

(Marc Miller) #2

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);

(Andreas Hopf) #3

@marmil Alright, I give that a try; thanks!