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

◆ SetupTotallyRandomPalette()

void SetupTotallyRandomPalette ( )
Examples
ColorPalette.ino.

Definition at line 117 of file ColorPalette.ino.

118{
119 for( int i = 0; i < 16; ++i) {
120 currentPalette[i] = CHSV( random8(), 255, random8());
121 }
122}
CRGBPalette16 currentPalette
LIB8STATIC uint8_t random8()
Generate an 8-bit random number.
Definition random8.h:44
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Definition chsv.h:16

References currentPalette, and random8().

Referenced by ChangePalettePeriodically().

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