Is anyone aware of a shared project that has a “ripple effect?”
I uncovered this thread:
https://plus.google.com/+AndrewTuline/posts/chq3XSo3z28
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!
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:
y=(mx+b)*sin(x+a)
where you just need to limit x.
@Andrew_Tuline Thanks Andrew. This is great!
@Andrew_Tuline Do you happen to have a version of this that fades to a background color instead of to black?
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
Here’s a ripple routine that I adapted from Reko Meriö. This one supports multiple simultaneous ripples.