Hi all, What are some of your favorite animations for creating a ripple/droplet effect

Hi all,

What are some of your favorite animations for creating a ripple/droplet effect and a smooth slowly shifting background behind it? For use on a strip (1 dimension).

So far I’ve only come across Andrew Tuline’s work, linked below.

https://plus.google.com/+AndrewTuline/posts/chq3XSo3z28

Was hoping to see a nice sine wave version. . .

I was playing around with this yesterday (and maybe a bit more today) and had a sine wave decay as it went away from the center (aka damped sine wave). The next thing would be to shift starting location which wouldn’t be too bad. The trick (at least for me), is converting it to be a triggered event that ends rather than be a continuous wave.

Hi Andrew, thanks for sharing your work! If I wanted to add your droplet effect to a background of another effect, is there any easy way I could do that?

@Amin_Shahsavar A couple of things that help are to:

  1. Ensure that a routine doesn’t have wait() statements. Mine doesn’t.
  2. Also, make sure that you’re doing “leds[x] +=” instead of “leds[x] =” That way, you’re just adding to the effect instead of just replacing the old values.

I’d start by pulling out my background “leds[i] =” assignment.

Otherwise, ripple() should be good on both accounts, so I’d just experiment.