Is anyone aware of a shared project that has a "ripple effect?" I uncovered

(Bill Goodrich) #1

Is anyone aware of a shared project that has a “ripple effect?”

I uncovered this thread:

That seems like a great place to start, but was curious if there was some other gold standard ripple effect code I should know about.

Thanks in advance!

(Andrew Tuline) #2

The most recent version I have of that is at:

Of course, I’d love to see a version with some fancy trig math instead. Like maybe something along these lines:

Edit: Although I’ve been playing around with simpler equations, such as:


where you just need to limit x.

(Bill Goodrich) #3

@Andrew_Tuline Thanks Andrew. This is great!

(Bill Goodrich) #4

@Andrew_Tuline Do you happen to have a version of this that fades to a background color instead of to black?

(Andrew Tuline) #5

Not published anywhere. Adding a background colour should be as easy as:

swap this:

fadeToBlackBy(leds, NUM_LEDS, fadeval);

with this:

fill_solid(leds, NUM_LEDS, CRGB(3,0,3)); // 8 bit values

(Andrew Tuline) #6

Here’s a ripple routine that I adapted from Reko Meriö. This one supports multiple simultaneous ripples.