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

◆ juggle()

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

Definition at line 119 of file demoreel100.h.

119 {
120 // eight colored dots, weaving in and out of sync with each other
121 fadeToBlackBy(leds, 20);
122 u8 dothue = 0;
123 for (u16 i = 0; i < 8; i++) {
124 leds[beatsin16(i + 7, 0, mNumLeds - 1)] |= CHSV(dothue, 200, 255);
125 dothue += 32;
126 }
127 }
fl::CRGB leds[NUM_LEDS]
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_NOEXCEPT
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)

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

+ Here is the call graph for this function: