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

◆ addGlitter()

void addGlitter ( fract8 chanceOfGlitter)
Examples
DemoReel100.ino.

Definition at line 93 of file DemoReel100.ino.

94{
95 if( random8() < chanceOfGlitter) {
97 }
98}
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
LIB8STATIC fl::u16 random16() FL_NOEXCEPT
Generate a 16-bit random number.
Definition random8.h:63
LIB8STATIC fl::u8 random8() FL_NOEXCEPT
Generate an 8-bit random number.
Definition random8.h:53
@ White
<div style='background:#FFFFFF;width:4em;height:4em;'></div>
Definition crgb.h:646

References leds, NUM_LEDS, random16(), random8(), and fl::CRGB::White.

Referenced by rainbowWithGlitter().

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