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

◆ confetti()

void confetti ( )
Examples
DemoReel100.ino.

Definition at line 89 of file DemoReel100.ino.

90{
91 // random colored speckles that blink in and fade smoothly
93 int pos = random16(NUM_LEDS);
94 leds[pos] += CHSV( gHue + random8(64), 200, 255);
95}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
uint8_t pos
Definition Blur.ino:11
uint8_t gHue
void fadeToBlackBy(CRGB *leds, uint16_t num_leds, uint8_t fadeBy)
Reduce the brightness of an array of pixels all at once.
LIB8STATIC uint16_t random16()
Generate a 16-bit random number.
Definition random8.h:54
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 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: