While all of the above code is awesome, it’s not really a direct replacement for FastLED palettes
And
It might be nice to have a simple (cut and paste) way to use those. @jeff 's code example is probably Overkill but a good start. I’m picturing a function that essentially given a palette array (or a default), and would otherwise replace making an RGB or hsv call (likely calling it itself)
I see where this would help with translating FastLED patterns. Since I plan on that, if it doesn’t exist yet, it will soon. (I’m planning on lighting up my dark winter with lots of LED coding)