FastLED 3.9.15
Loading...
Searching...
No Matches

◆ chooseNextColorPalette()

void fl::TwinkleFox::chooseNextColorPalette ( CRGBPalette16 & pal)

Definition at line 300 of file twinklefox.h.

300 {
301 const uint8_t numberOfPalettes =
302 sizeof(ActivePaletteList) / sizeof(ActivePaletteList[0]);
303 static uint8_t whichPalette = -1;
304 whichPalette = addmod8(whichPalette, 1, numberOfPalettes);
305 pal = *(ActivePaletteList[whichPalette]);
306}
LIB8STATIC uint8_t addmod8(uint8_t a, uint8_t b, uint8_t m)
Add two numbers, and calculate the modulo of the sum and a third number, M.
Definition math8.h:392
const TProgmemRGBPalette16 * ActivePaletteList[]
Definition twinklefox.h:295

References fl::ActivePaletteList, and addmod8().

Referenced by TwinkleFox().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: