Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CrawlTest

  • Loading branch information...
commit 7ea74da437e274854539e117d27c437172579a7a 1 parent 4eeabf2
@potatono potatono authored
Showing with 37 additions and 10 deletions.
  1. +27 −0 CrawlTest.pde
  2. +10 −10 domeTransmitter.pde
View
27 CrawlTest.pde
@@ -0,0 +1,27 @@
+class CrawlTest extends Routine {
+ int y;
+ int x;
+
+ void setup() {
+ y=0;
+ x=0;
+ }
+
+ void draw() {
+ background(0);
+
+ x++;
+ if (x>width) {
+ x=0;
+ y++;
+
+ if (y>height) {
+ y=0;
+ }
+ }
+
+ stroke(255);
+ point(x,y);
+ }
+}
+
View
20 domeTransmitter.pde
@@ -3,8 +3,6 @@ import processing.opengl.*;
import java.lang.reflect.Method;
import hypermedia.net.*;
import java.io.*;
-import ddf.minim.*;
-import ddf.minim.analysis.*;
int WIDTH = 25;
int HEIGHT = 160;
@@ -25,9 +23,10 @@ Routine[] enabledRoutines = new Routine[] {/*
new TargetScanner(),
new Waterfalls(),
new RGBRoutine(),
- new FFTDemo(),
new FlashColors(),
- new FollowMouse()
+ new FollowMouse(),*/
+
+ new CrawlTest()
};
int w = 0;
@@ -52,10 +51,10 @@ WiiController controller;
void setup() {
// Had to enable OPENGL for some reason new fonts don't work in JAVA2D.
- size(WIDTH, HEIGHT);
+ size(WIDTH,HEIGHT);
frameRate(FRAMERATE);
-
+
dacwes = new Dacwes(this, WIDTH, HEIGHT);
dacwes.setAddress(hostname);
dacwes.setAddressingMode(Dacwes.ADDRESSING_VERTICAL_NORMAL);
@@ -85,7 +84,7 @@ void setMode(int newMode) {
mode = newMode;
modeFrameStart = frameCount;
println("New mode " + currentRoutine.getClass().getName());
-
+
currentRoutine.reset();
}
@@ -102,7 +101,7 @@ void newMode() {
}
setMode(newMode);
- // dacwes.sendMode(enabledModes[newMode]);
+// dacwes.sendMode(enabledModes[newMode]);
}
void draw() {
@@ -132,7 +131,8 @@ void draw() {
currentRoutine.isDone = false;
newMode();
}
- // println(frameRate);
- dacwes.sendData();
+// println(frameRate);
+ dacwes.sendData();
}
+
Please sign in to comment.
Something went wrong with that request. Please try again.