Searched refs:finalColor (Results 1 - 1 of 1) sorted by relevance

/external/jmonkeyengine/engine/src/core/com/jme3/math/
H A DColorRGBA.java281 * Sets this color to the interpolation by changeAmnt from this to the finalColor
282 * this=(1-changeAmnt)*this + changeAmnt * finalColor
283 * @param finalColor The final color to interpolate towards
285 * change from this towards finalColor
287 public void interpolate(ColorRGBA finalColor, float changeAmnt) { argument
288 this.r = (1 - changeAmnt) * this.r + changeAmnt * finalColor.r;
289 this.g = (1 - changeAmnt) * this.g + changeAmnt * finalColor.g;
290 this.b = (1 - changeAmnt) * this.b + changeAmnt * finalColor.b;
291 this.a = (1 - changeAmnt) * this.a + changeAmnt * finalColor.a;
295 * Sets this color to the interpolation by changeAmnt from beginColor to finalColor
302 interpolate(ColorRGBA beginColor, ColorRGBA finalColor, float changeAmnt) argument
[all...]

Completed in 66 milliseconds