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

Method lerpColor

core/src/processing/core/PGraphics.java:8111–8113  ·  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

8109 * @see PApplet#lerp(float, float, float)
8110 */
8111 public int lerpColor(int c1, int c2, float amt) { // ignore
8112 return lerpColor(c1, c2, amt, colorMode);
8113 }
8114
8115 static float[] lerpColorHSB1;
8116 static float[] lerpColorHSB2;

Callers 1

lerpColorMethod · 0.95

Calls 2

roundMethod · 0.95
lerpMethod · 0.95

Tested by

no test coverage detected