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

◆ confetti()

void confetti ( )
Examples
DemoReel100.ino.

Definition at line 100 of file DemoReel100.ino.

101{
102 // random colored speckles that blink in and fade smoothly
104 int pos = random16(NUM_LEDS);
105 leds[pos] += CHSV( gHue + random8(64), 200, 255);
106}
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
uint8_t pos
Definition Blur.ino:11
uint8_t gHue
void fadeToBlackBy(CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy)
fl::hsv8 CHSV
Definition chsv.h:11
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

References fadeToBlackBy(), gHue, leds, NUM_LEDS, pos, random16(), and random8().

Referenced by fl::DemoReel100::runPattern().

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