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

◆ SetupRandomPalette()

void fl::NoisePalette::SetupRandomPalette ( )
inlineprivate

Definition at line 72 of file noisepalette.h.

72 {
73 CRGBPalette16 newPalette;
74 do {
75 newPalette = CRGBPalette16(
76 CHSV(random8(), 255, 32), CHSV(random8(), 255, 255),
77 CHSV(random8(), 128, 255), CHSV(random8(), 255, 255));
78 } while (newPalette == currentPalette);
79 currentPalette = newPalette;
80 }
CRGBPalette16 currentPalette
fl::hsv8 CHSV
Definition chsv.h:11
LIB8STATIC fl::u8 random8() FL_NOEXCEPT
Generate an 8-bit random number.
Definition random8.h:53

References currentPalette, and random8().

Referenced by setPalettePreset().

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