( 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)
| 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) { |