MCPcopy Create free account
hub / github.com/benfry/processing4 / lerp

Method lerp

core/src/processing/core/PApplet.java:4590–4592  ·  view source on GitHub ↗

Calculates a number between two numbers at a specific increment. The amt parameter is the amount to interpolate between the two values where 0.0 equal to the first point, 0.1 is very near the first point, 0.5 is half-way in between, etc. The lerp function is convenient for creating motion alo

(float start, float stop, float amt)

Source from the content-addressed store, hash-verified

4588 * @see PGraphics#lerpColor(int, int, float)
4589 */
4590 static public final float lerp(float start, float stop, float amt) {
4591 return start + (stop-start) * amt;
4592 }
4593
4594 /**
4595 *

Callers 4

lerpColorMethod · 0.95
lerpMethod · 0.95
getRasterMethod · 0.95
getRasterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected