[Patchanim-commit] SF.net SVN: patchanim:[254] trunk/patchanim/src/com/mebigfatguy/patchanim/ surfa
Brought to you by:
dbrosius
From: <dbr...@us...> - 2008-12-25 18:16:50
|
Revision: 254 http://patchanim.svn.sourceforge.net/patchanim/?rev=254&view=rev Author: dbrosius Date: 2008-12-25 18:16:48 +0000 (Thu, 25 Dec 2008) Log Message: ----------- push tweenStyle down to PatchCoord.tween Modified Paths: -------------- trunk/patchanim/src/com/mebigfatguy/patchanim/surface/CombinedPatch.java trunk/patchanim/src/com/mebigfatguy/patchanim/surface/PatchCoords.java Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/surface/CombinedPatch.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/surface/CombinedPatch.java 2008-12-25 18:15:30 UTC (rev 253) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/surface/CombinedPatch.java 2008-12-25 18:16:48 UTC (rev 254) @@ -75,17 +75,17 @@ { PatchCoords sRedCoords = startPatch.getPatch(PatchColor.Red); PatchCoords eRedCoords = endPatch.getPatch(PatchColor.Red); - tweenPatch.setPatch(PatchColor.Red, PatchCoords.tween(sRedCoords, eRedCoords, frac)); + tweenPatch.setPatch(PatchColor.Red, PatchCoords.tween(sRedCoords, eRedCoords, tweenStyle, frac)); } { PatchCoords sGreenCoords = startPatch.getPatch(PatchColor.Green); PatchCoords eGreenCoords = endPatch.getPatch(PatchColor.Green); - tweenPatch.setPatch(PatchColor.Green, PatchCoords.tween(sGreenCoords, eGreenCoords, frac)); + tweenPatch.setPatch(PatchColor.Green, PatchCoords.tween(sGreenCoords, eGreenCoords, tweenStyle, frac)); } { PatchCoords sBlueCoords = startPatch.getPatch(PatchColor.Blue); PatchCoords eBlueCoords = endPatch.getPatch(PatchColor.Blue); - tweenPatch.setPatch(PatchColor.Blue, PatchCoords.tween(sBlueCoords, eBlueCoords, frac)); + tweenPatch.setPatch(PatchColor.Blue, PatchCoords.tween(sBlueCoords, eBlueCoords, tweenStyle, frac)); } PatchPanelMediator mediator = PatchPanelMediator.getMediator(); @@ -93,7 +93,7 @@ { PatchCoords sAlphaCoords = startPatch.getPatch(PatchColor.Alpha); PatchCoords eAlphaCoords = endPatch.getPatch(PatchColor.Alpha); - tweenPatch.setPatch(PatchColor.Alpha, PatchCoords.tween(sAlphaCoords, eAlphaCoords, frac)); + tweenPatch.setPatch(PatchColor.Alpha, PatchCoords.tween(sAlphaCoords, eAlphaCoords, tweenStyle, frac)); } return tweenPatch; } Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/surface/PatchCoords.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/surface/PatchCoords.java 2008-12-25 18:15:30 UTC (rev 253) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/surface/PatchCoords.java 2008-12-25 18:16:48 UTC (rev 254) @@ -22,6 +22,8 @@ import java.util.Arrays; import java.util.Random; +import com.mebigfatguy.patchanim.TweenStyle; + public class PatchCoords implements Serializable, Cloneable { private static final long serialVersionUID = -4052789167154764908L; @@ -79,7 +81,7 @@ return order; } - public static PatchCoords tween(PatchCoords startCoords, PatchCoords endCoords, double frac) { + public static PatchCoords tween(PatchCoords startCoords, PatchCoords endCoords, TweenStyle tweenStyle, double frac) { PatchCoords tweenCoords = new PatchCoords(startCoords.getOrder()); for (int x = 0; x < tweenCoords.order; x++) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |