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

◆ triggerRipple()

void triggerRipple ( WaveSimulation1D & waveSim,
int x )

Definition at line 49 of file Wave.h.

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