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

◆ confetti()

void fl::DemoReel100::confetti ( fl::span< CRGB > leds)
inlineprivate

Definition at line 94 of file demoreel100.h.

94 {
95 // random colored speckles that blink in and fade smoothly
97 int pos = random16(mNumLeds);
98 leds[pos] += CHSV(hue + random8(64), 200, 255);
99 }
fl::CRGB leds[NUM_LEDS]
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_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
void fadeToBlackBy(CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy)

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

+ Here is the call graph for this function: