Java interpolate interpolate(float firstColor, float secondColor, float stage, float maxStages)

Here you can find the source of interpolate(float firstColor, float secondColor, float stage, float maxStages)

Description

interpolate

License

Open Source License

Declaration

public static int interpolate(float firstColor, float secondColor, float stage, float maxStages) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int interpolate(float firstColor, float secondColor, float stage, float maxStages) {
        return (int) (firstColor + (secondColor - firstColor) * stage / maxStages);
    }/*w  w  w  .j  a  va 2s.  co  m*/
}

Related

  1. interpolate(final float prev, final float curr, final float alpha)
  2. interpolate(final int n, final int lastN, final float interpolation)
  3. interpolate(final int x1, final double y1, final int x2, final double y2, final double... f)
  4. interpolate(float a, float b, float d)
  5. interpolate(float bottom, float top, float ratio)
  6. interpolate(float s, float e, float t)
  7. interpolate(float t, float a, float b)
  8. interpolate(float var1, float var2, float var3)
  9. interpolate(int a, int b, int theta, int reciprocal)