# Interpolation - lerp multiple cases

**URL:** <https://discourse.processing.org/t/interpolation-lerp-multiple-cases/21126>\
**Category:** Coding Questions\
**Created:** [May 21, 2020, 10:36am UTC](https://discourse.processing.org/t/interpolation-lerp-multiple-cases/21126 "2020-05-21T10:36:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkk16](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@rkk16](https://discourse.processing.org/u/rkk16)\
**Post date:** [May 21, 2020, 10:36am UTC](https://discourse.processing.org/t/interpolation-lerp-multiple-cases/21126/1 "2020-05-21T10:36:07Z")

</div>

Hey guys, I’m using lerp to interpolate between facial expressions (ie happy to sad would be lerp between an arc (for the lips) with a certain length, width and fill radian to another). I also managed to connect a slider which controls the level of interpolation (how happy or sad you want it to be). While this works for an interpolation between 2 states, my question is regarding how to do multiple states simulatenously? I want to have multiple sliders which allow a combination of interpolations. ie sliders for happy to sad, happy to angry, happy to disgust and you can be on 40% sad, 60% angry, 80% disgust and the lips adjust to interpolate a combination of the three interpolations.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [May 21, 2020, 8:28pm UTC](https://discourse.processing.org/t/interpolation-lerp-multiple-cases/21126/2 "2020-05-21T20:28:15Z")

</div>

3 posts were merged into an existing topic: [Morph from one position to another - animation](https://discourse.processing.org/t/morph-from-one-position-to-another-animation/21112)

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [May 21, 2020, 8:28pm UTC](https://discourse.processing.org/t/interpolation-lerp-multiple-cases/21126/3 "2020-05-21T20:28:15Z")

</div>


