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

Method lerpColor

core/src/processing/core/PApplet.java:10513–10519  ·  view source on GitHub ↗

( begin auto-generated from lerpColor.xml ) Calculates a color or colors between two color 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. (

(int c1, int c2, float amt)

Source from the content-addressed store, hash-verified

10511 * @see PApplet#lerp(float, float, float)
10512 */
10513 public int lerpColor(int c1, int c2, float amt) {
10514 if (g != null) {
10515 return g.lerpColor(c1, c2, amt);
10516 }
10517 // use the default mode (RGB) if lerpColor is called before setup()
10518 return PGraphics.lerpColor(c1, c2, amt, RGB);
10519 }
10520
10521
10522 static public int blendColor(int c1, int c2, int mode) {

Callers 1

makeGradientMethod · 0.95

Calls 1

lerpColorMethod · 0.95

Tested by

no test coverage detected