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

Method lerpColor

core/src/processing/core/PGraphics.java:8118–8120  ·  view source on GitHub ↗

Calculates a color between two colors at a specific increment. The amt parameter is the amount to interpolate between the two values where 0.0 is equal to the first point, 0.1 is very near the first point, 0.5 is halfway in between, etc. An amount below 0 will be treated as 0. Likewise

(int c1, int c2, float amt)

Source from the content-addressed store, hash-verified

8116 * @see PApplet#lerp(float, float, float)
8117 */
8118 public int lerpColor(int c1, int c2, float amt) { // ignore
8119 return lerpColor(c1, c2, amt, colorMode);
8120 }
8121
8122 static float[] lerpColorHSB1;
8123 static float[] lerpColorHSB2;

Callers 1

lerpColorMethod · 0.95

Calls 2

roundMethod · 0.95
lerpMethod · 0.95

Tested by

no test coverage detected