MCPcopy Index your code
hub / github.com/processing/processing / lerp

Method lerp

core/src/processing/core/PApplet.java:5021–5023  ·  view source on GitHub ↗

( begin auto-generated from lerp.xml ) 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 functi

(float start, float stop, float amt)

Source from the content-addressed store, hash-verified

5019 * @see PGraphics#lerpColor(int, int, float)
5020 */
5021 static public final float lerp(float start, float stop, float amt) {
5022 return start + (stop-start) * amt;
5023 }
5024
5025 /**
5026 * ( begin auto-generated from norm.xml )

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected