[Patchanim-commit] SF.net SVN: patchanim: [105] trunk/patchanim/src/com/mebigfatguy/patchanim/ surf
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-02-08 05:39:45
|
Revision: 105
http://patchanim.svn.sourceforge.net/patchanim/?rev=105&view=rev
Author: dbrosius
Date: 2008-02-07 21:39:50 -0800 (Thu, 07 Feb 2008)
Log Message:
-----------
better random patches
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-02-08 05:37:17 UTC (rev 104)
+++ trunk/patchanim/src/com/mebigfatguy/patchanim/surface/PatchCoords.java 2008-02-08 05:39:50 UTC (rev 105)
@@ -34,7 +34,7 @@
Random r = new Random();
for (int u = 0; u < PatchCoords.ORDER; u++) {
for (int v = 0; v < PatchCoords.ORDER; v++) {
- coords[u][v] = new Coordinate((u * 100.0) / (PatchCoords.ORDER - 1), (v * 100.0) / (PatchCoords.ORDER - 1), r.nextInt(256));
+ coords[u][v] = new Coordinate((u * 100.0) / (PatchCoords.ORDER - 1), (v * 100.0) / (PatchCoords.ORDER - 1), r.nextInt(400) - 50);
}
}
return new PatchCoords(coords);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|