FastLED 3.10.8
Loading...
Searching...
No Matches

◆ confetti()

void fl::DemoReel100::confetti ( fl::span< 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[1]
uint8_t pos
Definition Blur.ino:11
u16 mNumLeds
Definition fx.h:53
fl::hsv8 CHSV
Definition chsv.h:11
LIB8STATIC fl::u16 random16() FL_NO_EXCEPT
Generate a 16-bit random number.
Definition random8.h:63
LIB8STATIC fl::u8 random8() FL_NO_EXCEPT
Generate an 8-bit random number.
Definition random8.h:53
void fadeToBlackBy(CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) FL_NO_EXCEPT

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

+ Here is the call graph for this function: