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

◆ SetupRandomPalette()

void fl::NoisePalette::SetupRandomPalette ( )
inlineprivate

Definition at line 74 of file noisepalette.h.

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

References currentPalette, and random8().

Referenced by setPalettePreset().

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