Processing / p5.js Tutorial: What is lerp? (Linear Interpolation)

[ad_1]
This video covers the lerp() function which is part of both Processing and p5.js. What is lerp()? What is linear interpolation? How can you use this function to create an “easing” effect or smooth out noisy values (from perhaps a sensor).

Contact:

Learn p5.js from scratch:

Learn Processing from scratch:

Help us caption & translate this video!


Posted

in

by

Tags:

Comments

6 responses to “Processing / p5.js Tutorial: What is lerp? (Linear Interpolation)”

  1. koundinya gms Avatar

    Hello Dave,
    Totally unrelated!
    can you do a lesson on linear programming in javascript. it would be of great help.

  2. tim mellis Avatar

    Hello, do you know if createLinearGradient works with P5? I'm new to programming but I can't get the code I wrote before using P5 to work with my P5 set up, like createLinearGradient for example. Also why do you have the greyed-out word void in your code? — Thank you anyone who wants to answer. I'm totally lost

  3. Brendan James Avatar

    Hey Daniel,
    I'm wondering if lerp is the way to go if I want to do a smooth zoom? I have a sketch setup where I click and the image zooms in but it's a snap not a smooth zoom. Is lerp the way to go?

  4. Ben H Avatar

    Thanks!
    Very helpful (:

Leave a Reply

Your email address will not be published. Required fields are marked *