Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean bursts

  • Loading branch information...
commit 74e683c58213ffaaa8a6781071d203b9a6ac146c 1 parent f0f6304
@cibomahto cibomahto authored
Showing with 8 additions and 4 deletions.
  1. +4 −4 Bursts.pde
  2. +4 −0 domeTransmitter.pde
View
8 Bursts.pde
@@ -60,7 +60,7 @@ class Burst {
yv = random(max_speed) - max_speed/2;
maxd = random(12);
- speed = random(5)/10 + 0.2;
+ speed = random(5)/10 + 0.4;
d = 0;
intensity = 255;
}
@@ -74,9 +74,9 @@ class Burst {
{
fill(color(r,g,b));
stroke(color(r,g,b));
- ellipse(x, y, d*(1+3.0*y/HEIGHT), d*3);
- ellipse(x-WIDTH, y, d*(1+3.0*y/HEIGHT), d*3);
- ellipse(x+WIDTH, y, d*(1+3.0*y/HEIGHT), d*3);
+ ellipse(x, y, d*(.5-.3*y/HEIGHT), d*3);
+ ellipse(x-WIDTH, y, d*(.5-.3*y/HEIGHT), d*3);
+ ellipse(x+WIDTH, y, d*(.5-.3*y/HEIGHT), d*3);
d+= speed;
if (d > maxd)
r -= 15;
View
4 domeTransmitter.pde
@@ -9,18 +9,22 @@ import java.lang.reflect.Method;
import hypermedia.net.*;
import java.io.*;
+// This should be 127.0.0.1, 58802
String transmit_address = "127.0.0.1";
int transmit_port = 58082;
+// Display configuration
int WIDTH = 40;
int HEIGHT = 160;
boolean VERTICAL = false;
int FRAMERATE = 40;
int TYPICAL_MODE_TIME = 300;
+
Routine drop = new DropTheBomb();
Routine pong = new Pong();
+
Routine[] enabledRoutines = new Routine[] {
// new Warp(new WarpSpeedMrSulu(), false, true, 0.5, 0.5),
// new Warp(null, true, false, 0.5, 0.5),
Please sign in to comment.
Something went wrong with that request. Please try again.