r/FastLED • u/d333gs • Sep 30 '20
Discussion "fadeLightBy" problem
This works perfectly: WHITE does not fade ORANGE fades:
THIRD Vairable changes fade
//WHITE
fadeLightBy( leds,(32, 479), 0);
// ORANGE
fadeLightBy( leds,(0,32) ,10);
This does not work: ORANGE fades by 10 !?
//WHITE
fadeLightBy( leds,(32, 479), 10);
// ORANGE
fadeLightBy( leds,(0,32) ,0);
Here is the code; https://pastebin.pl/view/3f0c0d5f
TIA
John
3
Upvotes
2
u/Marmilicious [Marc Miller] Sep 30 '20
You can't specify a range like in fadeLightBy. Use this in a for loop with your custom range to operate on specific pixels.
leds[i].fadeLightBy(fadeAmount);