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

◆ SetupRandomPalette()

void fl::NoisePalette::SetupRandomPalette ( )
inlineprivate

Definition at line 73 of file noisepalette.h.

73 {
74 CRGBPalette16 newPalette;
75 do {
76 newPalette = CRGBPalette16(
77 CHSV(random8(), 255, 32), CHSV(random8(), 255, 255),
78 CHSV(random8(), 128, 255), CHSV(random8(), 255, 255));
79 } while (newPalette == currentPalette);
80 currentPalette = newPalette;
81 }
CRGBPalette16 currentPalette
LIB8STATIC uint8_t random8()
Generate an 8-bit random number.
Definition random8.h:44

References currentPalette, and random8().

Referenced by setPalettePreset().

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