Can I make these animations on curveVertex smooth?

https://editor.p5js.org/CarlyRaeJepsenStan/sketches/xH6tvmKep

Sorry about the poor code - I’m going to rewrite it with arrays. In any case, as you can see the blob changes bounds and position quite often. However, I want the circle to move around fluidly without these jerky motions - how can I accomplish that?

you can lerp between the states so there is a transition phase instead of instantaneous change. also you can change the rate at which you change the states (date.now()%17 is a bit coarse) you can see a quick tweak here

1 Like

Wow, thanks! I had no idea about the lerp function.