[Patchanim-commit] SF.net SVN: patchanim: [244] trunk/patchanim/src/com/mebigfatguy/patchanim/ surf
Brought to you by:
dbrosius
From: <dbr...@us...> - 2008-06-08 00:11:14
|
Revision: 244 http://patchanim.svn.sourceforge.net/patchanim/?rev=244&view=rev Author: dbrosius Date: 2008-06-07 15:48:31 -0700 (Sat, 07 Jun 2008) Log Message: ----------- PRMC fix Modified Paths: -------------- trunk/patchanim/src/com/mebigfatguy/patchanim/surface/PatchCoords.java Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/surface/PatchCoords.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/surface/PatchCoords.java 2008-06-07 22:46:22 UTC (rev 243) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/surface/PatchCoords.java 2008-06-07 22:48:31 UTC (rev 244) @@ -86,7 +86,8 @@ for (int y = 0; y < tweenCoords.order; y++) { Coordinate startC = startCoords.getCoordinate(x,y); Coordinate endC = endCoords.getCoordinate(x,y); - int tweenColor = (int)(startC.getColor() + (endC.getColor() - startC.getColor()) * frac); + double startColor = startC.getColor(); + int tweenColor = (int)(startColor + (endC.getColor() - startColor) * frac); Coordinate tweenC = new Coordinate(startC.getX(), endC.getY(), tweenColor); tweenCoords.setCoordinate(x, y, tweenC); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |