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

◆ SetupRandomPalette()

void SetupRandomPalette ( )
Examples
NoisePlusPalette.ino.

Definition at line 241 of file NoisePlusPalette.ino.

242{
243 currentPalette = CRGBPalette16(
244 CHSV( random8(), 255, 32),
245 CHSV( random8(), 255, 255),
246 CHSV( random8(), 128, 255),
247 CHSV( random8(), 255, 255));
248}
CRGBPalette16 currentPalette
LIB8STATIC uint8_t random8()
Generate an 8-bit random number.
Definition random8.h:46
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Definition chsv.h:16

References currentPalette, and random8().

Referenced by ChangePaletteAndSettingsPeriodically().

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