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

◆ juggle()

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

Definition at line 121 of file demoreel100.h.

121 {
122 // eight colored dots, weaving in and out of sync with each other
123 fadeToBlackBy(leds, 20);
124 u8 dothue = 0;
125 for (u16 i = 0; i < 8; i++) {
126 leds[beatsin16(i + 7, 0, mNumLeds - 1)] |= CHSV(dothue, 200, 255);
127 dothue += 32;
128 }
129 }
CRGB leds[1]
u16 mNumLeds
Definition fx.h:53
LIB8STATIC u16 beatsin16(accum88 beats_per_minute, u16 lowest=0, u16 highest=65535, u32 timebase=0, u16 phase_offset=0) FL_NO_EXCEPT
Generates a 16-bit sine wave at a given BPM that oscillates within a given range.
Definition beat.h:84
fl::hsv8 CHSV
Definition chsv.h:11
unsigned char u8
Definition stdint.h:131
void fadeToBlackBy(CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) FL_NO_EXCEPT

References fl::beatsin16(), fl::fadeToBlackBy(), fl::FL_NO_EXCEPT, leds, and fl::Fx::mNumLeds.

+ Here is the call graph for this function: