Browse files

straight java project

  • Loading branch information...
1 parent fec0403 commit 2d170ea20e27c5f7a168764534d6a52393141f59 Nathan Hamblen committed Nov 1, 2009
Showing with 20 additions and 0 deletions.
  1. +19 −0 Straight_Java/src/main/java/StraightJava.java
  2. +1 −0 project/build/ExamplesProject.scala
View
19 Straight_Java/src/main/java/StraightJava.java
@@ -0,0 +1,19 @@
+import processing.core.*;
+import spde.core.*;
+import processing.core.PConstants.*;
+
+public class StraightJava extends PApplet {
+ public static void main(String[] args) { PApplet.main(new String[] {"StraightJava"}); }
+
+ public void setup() {
+ size(500, 200);
+ frameRate(20);
+ }
+
+ public void draw() {
+ for (int x=0; x<width; x++) {
+ stroke(random(255));
+ line (x, 0, x, height);
+ }
+ }
+}
View
1 project/build/ExamplesProject.scala
@@ -20,4 +20,5 @@ class ExamplesProject(info: ProjectInfo) extends ParentProject(info)
val dispatch = "net.databinder" %% "dispatch-lift-json" % "0.6.0"
})
lazy val straight_scala = project("Straight_Scala", "Straight_Scala", new DefaultSpdeProject(_))
+ lazy val straight_java = project("Straight_Java", "Straight_Java", new DefaultSpdeProject(_))
}

0 comments on commit 2d170ea

Please sign in to comment.