FastLED 3.9.15
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

◆ confetti()

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

Definition at line 98 of file demoreel100.h.

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

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

+ Here is the call graph for this function: