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

◆ confetti()

void fl::DemoReel100::confetti ( CRGB * leds)
inlineprivate

Definition at line 96 of file demoreel100.h.

96 {
97 // random colored speckles that blink in and fade smoothly
99 int pos = random16(mNumLeds);
100 leds[pos] += CHSV(hue + random8(64), 200, 255);
101 }
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
uint8_t pos
Definition Blur.ino:11
uint16_t mNumLeds
Definition fx.h:53
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
void fadeToBlackBy(CRGB *leds, uint16_t num_leds, uint8_t fadeBy)

References fl::fadeToBlackBy(), hue, leds, fl::Fx::mNumLeds, pos, random16(), and random8().

+ Here is the call graph for this function: