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

◆ triggerRipple()

void triggerRipple ( fl::WaveSimulation1D & waveSim,
int x )

Definition at line 48 of file Wave.h.

48 {
49
50 for (int i = x - 1; i <= x + 1; i++) {
51 if (i < 0 || i >= NUM_LEDS)
52 continue;
53 waveSim.setf(i, -1.f);
54 }
55}
#define NUM_LEDS
int x
Definition simple.h:92
fl::WaveSimulation1D waveSim(NUM_LEDS, fl::SuperSample::SUPER_SAMPLE_2X)

References NUM_LEDS, waveSim(), and x.

Referenced by loop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: