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 function is convenient for creating motion alo
(float start, float stop, float amt)
| 4588 | * @see PGraphics#lerpColor(int, int, float) |
| 4589 | */ |
| 4590 | static public final float lerp(float start, float stop, float amt) { |
| 4591 | return start + (stop-start) * amt; |
| 4592 | } |
| 4593 | |
| 4594 | /** |
| 4595 | * |