Skip to content

Commit

Permalink
CrawlTest
Browse files Browse the repository at this point in the history
  • Loading branch information
potatono committed May 19, 2012
1 parent 4eeabf2 commit 7ea74da
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 10 deletions.
27 changes: 27 additions & 0 deletions CrawlTest.pde
Original file line number Original file line Diff line number Diff line change
@@ -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);
}
}

20 changes: 10 additions & 10 deletions domeTransmitter.pde
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import processing.opengl.*;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import hypermedia.net.*; import hypermedia.net.*;
import java.io.*; import java.io.*;
import ddf.minim.*;
import ddf.minim.analysis.*;


int WIDTH = 25; int WIDTH = 25;
int HEIGHT = 160; int HEIGHT = 160;
Expand All @@ -25,9 +23,10 @@ Routine[] enabledRoutines = new Routine[] {/*
new TargetScanner(), new TargetScanner(),
new Waterfalls(), new Waterfalls(),
new RGBRoutine(), new RGBRoutine(),
new FFTDemo(),
new FlashColors(), new FlashColors(),
new FollowMouse() new FollowMouse(),*/

new CrawlTest()
}; };


int w = 0; int w = 0;
Expand All @@ -52,10 +51,10 @@ WiiController controller;


void setup() { void setup() {
// Had to enable OPENGL for some reason new fonts don't work in JAVA2D. // Had to enable OPENGL for some reason new fonts don't work in JAVA2D.
size(WIDTH, HEIGHT); size(WIDTH,HEIGHT);


frameRate(FRAMERATE); frameRate(FRAMERATE);
dacwes = new Dacwes(this, WIDTH, HEIGHT); dacwes = new Dacwes(this, WIDTH, HEIGHT);
dacwes.setAddress(hostname); dacwes.setAddress(hostname);
dacwes.setAddressingMode(Dacwes.ADDRESSING_VERTICAL_NORMAL); dacwes.setAddressingMode(Dacwes.ADDRESSING_VERTICAL_NORMAL);
Expand Down Expand Up @@ -85,7 +84,7 @@ void setMode(int newMode) {
mode = newMode; mode = newMode;
modeFrameStart = frameCount; modeFrameStart = frameCount;
println("New mode " + currentRoutine.getClass().getName()); println("New mode " + currentRoutine.getClass().getName());
currentRoutine.reset(); currentRoutine.reset();
} }


Expand All @@ -102,7 +101,7 @@ void newMode() {
} }


setMode(newMode); setMode(newMode);
// dacwes.sendMode(enabledModes[newMode]); // dacwes.sendMode(enabledModes[newMode]);
} }


void draw() { void draw() {
Expand Down Expand Up @@ -132,7 +131,8 @@ void draw() {
currentRoutine.isDone = false; currentRoutine.isDone = false;
newMode(); newMode();
} }
// println(frameRate); // println(frameRate);
dacwes.sendData(); dacwes.sendData();
} }



0 comments on commit 7ea74da

Please sign in to comment.