# Can I make these animations on curveVertex smooth?

**URL:** <https://discourse.processing.org/t/can-i-make-these-animations-on-curvevertex-smooth/30805>\
**Category:** Coding Questions\
**Created:** [June 19, 2021, 9:20pm UTC](https://discourse.processing.org/t/can-i-make-these-animations-on-curvevertex-smooth/30805 "2021-06-19T21:20:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cog](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/cog/32/13666_2.png) [@cog](https://discourse.processing.org/u/cog)\
**Post date:** [June 19, 2021, 9:20pm UTC](https://discourse.processing.org/t/can-i-make-these-animations-on-curvevertex-smooth/30805/1 "2021-06-19T21:20:13Z")

</div>

[https://editor.p5js.org/CarlyRaeJepsenStan/sketches/xH6tvmKep](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?

---

<div class="post-metadata">

**Author:** ![hotfooted](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hotfooted/32/3670_2.png) [@hotfooted](https://discourse.processing.org/u/hotfooted)\
**Post date:** [June 20, 2021, 2:02pm UTC](https://discourse.processing.org/t/can-i-make-these-animations-on-curvevertex-smooth/30805/2 "2021-06-20T14:02:01Z")

</div>

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](https://editor.p5js.org/hotfooted/sketches/A1-uCOMG2)

---

<div class="post-metadata">

**Author:** ![cog](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/cog/32/13666_2.png) [@cog](https://discourse.processing.org/u/cog)\
**Post date:** [June 20, 2021, 11:15pm UTC](https://discourse.processing.org/t/can-i-make-these-animations-on-curvevertex-smooth/30805/3 "2021-06-20T23:15:29Z")

</div>

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