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

◆ confetti()

void confetti ( )
Examples
DemoReel100.ino.

Definition at line 98 of file DemoReel100.ino.

99{
100 // random colored speckles that blink in and fade smoothly
102 int pos = random16(NUM_LEDS);
103 leds[pos] += CHSV( gHue + random8(64), 200, 255);
104}
CRGB leds[NUM_LEDS]
#define NUM_LEDS
uint8_t pos
Definition Blur.ino:11
uint8_t gHue
void fadeToBlackBy(CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy)
LIB8STATIC uint16_t random16()
Generate a 16-bit random number.
Definition random8.h:56
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 hsv.h:15

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: