Is there a linear fade (by appearance) function within FastLED? Doing a PWM fade,

I use a gamma correction table… It balances the fading to what our eyes can detect vs. what the voltages do… errr… I think. I just know my fades are freakin awesome with this table.

uint8_t const exp_gamma[256] =
{0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,
4,4,4,4,4,5,5,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,10,10,10,11,11,12,12,12,13,13,14,14,14,15,15,
16,16,17,17,18,18,19,19,20,20,21,21,22,23,23,24,24,25,26,26,27,28,28,29,30,30,31,32,32,33,
34,35,35,36,37,38,39,39,40,41,42,43,44,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,
61,62,63,64,65,66,67,68,70,71,72,73,74,75,77,78,79,80,82,83,84,85,87,89,91,92,93,95,96,98,
99,100,101,102,105,106,108,109,111,112,114,115,117,118,120,121,123,125,126,128,130,131,133,
135,136,138,140,142,143,145,147,149,151,152,154,156,158,160,162,164,165,167,169,171,173,175,
177,179,181,183,185,187,190,192,194,196,198,200,202,204,207,209,211,213,216,218,220,222,225,
227,229,232,234,236,239,241,244,246,249,251,253,254,255
};

Note on usage…
LED[i].setHSV(Hue,Sat,exp_gamma[Bright])

Might want to put that table in PROGMEM if you use it instead of using up 256 bytes of RAM. On an Uno, that table is using more than 10% of available memory.

But as always: do what works best for you!

FastLED_SPI was not the best at memory managment so I have gotten in the habit of being very memory conscious. So at this time I don’t need the PROGMEM and don’t want to sacrifice the performance if its not needed.