If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Course: Unlisted resources area > Unit 2

Lesson 1: ProcessingJS documentation

lerp(num1, num2, amount)

Calculates a number between two numbers at a specific increment.
Parameters:
NameDescription
num1The first number
num2The second number
amountA value between 0.0 and 1.0

Want to join the conversation?

No posts yet.