Skip to content

Commit

Permalink
Wednesday morning, burning man.
Browse files Browse the repository at this point in the history
  • Loading branch information
cibomahto committed Aug 29, 2012
1 parent f02d159 commit 6f1f119
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 32 deletions.
37 changes: 26 additions & 11 deletions Bursts.pde
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class Burst {
float maxd; float maxd;
float speed; float speed;
int intensity; int intensity;

float r; float r;
float g; float g;
float b; float b;
Expand All @@ -48,14 +49,21 @@ class Burst {


public void reset() public void reset()
{ {
r = random(128)+128; //r = random(128)+128;
g = random(128)+128; //g = random(128)+128;
b = random(128)+128; //b = random(128)+128;

// naim hack (PORNJ Pink: RGB 252/23/218)
r = random(220,255);
g = random(0,55);
b = random(210,230);
//r = random(128);
//g = random(118);
//b = random(128);

x = random(WIDTH); x = random(WIDTH);
y = random(HEIGHT); y = random(HEIGHT);


float max_speed = 3; float max_speed = 2;
xv = random(max_speed) - max_speed/2; xv = random(max_speed) - max_speed/2;
yv = random(max_speed) - max_speed/2; yv = random(max_speed) - max_speed/2;


Expand All @@ -78,12 +86,19 @@ class Burst {
ellipse(x-WIDTH, 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); ellipse(x+WIDTH, y, d*(.5-.3*y/HEIGHT), d*3);
d+= speed; d+= speed;
if (d > maxd) if (d > maxd) {
r -= 15; // day
g -= 15; r -= 2;
b -= 15; g -= 2;
intensity -= 15; b -= 2;

intensity -= 4;
//night
// r -= 1;
// g -= 1;
// b -= 1;
// intensity -= 3;
}

x +=xv; x +=xv;
y +=yv; y +=yv;


Expand Down
7 changes: 6 additions & 1 deletion Chase.pde
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,12 @@
class Chase extends Routine { class Chase extends Routine {
void draw() { void draw() {

// naim hack (PORNJ Pink: RGB 252/23/218)
float r = random(220,255)/2;
float g = random(0,55)/2;
float b = random(210,230)/2;
background(0); background(0);
stroke(255); stroke(color(r,g,b));


long frame = frameCount - modeFrameStart; long frame = frameCount - modeFrameStart;
line(frame/3.0%width, 0, frame/3.0%width, height); line(frame/3.0%width, 0, frame/3.0%width, height);
Expand Down
4 changes: 4 additions & 0 deletions ColorDrop.pde
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ class ColorDrop extends Routine {


float frame_mult = 3; // speed adjustment float frame_mult = 3; // speed adjustment


// lets add some jitter
modeFrameStart = modeFrameStart - min(0,int(random(-5,12)));

long frame = frameCount - modeFrameStart; long frame = frameCount - modeFrameStart;



for(int row = 0; row < height; row++) { for(int row = 0; row < height; row++) {
float phase = sin((float)((row+frame*frame_mult)%height)/height*3.146); float phase = sin((float)((row+frame*frame_mult)%height)/height*3.146);


Expand Down
4 changes: 3 additions & 1 deletion Seizure.pde
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ class Seizure extends Routine {
background(0,0,0); background(0,0,0);
} }
else { else {
background(130,130,130); //RGB 252/23/218
//background(130,130,130);
background(252,23,218);
} }


count = (count + 1) % 4; count = (count + 1) % 4;
Expand Down
23 changes: 18 additions & 5 deletions WarpSpeedMrSulu.pde
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class WarpStar {
float y; float y;
float len; float len;
float v; float v;

float r;
float g;
float b;


public WarpStar() { public WarpStar() {
this.reset(); this.reset();
Expand All @@ -47,17 +51,26 @@ class WarpStar {


public void draw() { public void draw() {
y = y + v; y = y + v;

//RGB 252/23/218
int r = int(map(y, 0, HEIGHT, 0, 255)); //r = int(map(y, 0, HEIGHT, 0, 255));
int g = 0; //g = 0;
int b = 0; //b = 0;
//r = 252;
//g = 23;
//b = 218;
r = random(232,255);
g = random(03,43);
b = random(198,238);


stroke(r, g, b); stroke(r, g, b);
point(x, y); point(x, y);


for (int i=0; i<len; i++) { for (int i=0; i<len; i++) {
float intensity = 255 >> i / 2; float intensity = 255 >> i / 2;
stroke(intensity);
fill(color(r,g,b));
stroke(color(r,g,b));
//stroke(intensity);
point(x, y - i); point(x, y - i);
} }


Expand Down
24 changes: 18 additions & 6 deletions Waves.pde
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -50,17 +50,27 @@ class Wave {
} }


public void init() { public void init() {
r = 24;//random(TWO_PI); r = 40;//random(TWO_PI);
f = PI/32 + random(PI/32); f = PI/32 + random(PI/32);
a = HEIGHT/3 + random(HEIGHT/3); a = HEIGHT/4 + random(HEIGHT/4);
y = HEIGHT/8 + int(random(HEIGHT - HEIGHT/8)); y = HEIGHT/8 + int(random(HEIGHT - HEIGHT/8));
s = PI/128 + random(PI/64); s = PI/128 + random(PI/16);


if (random(10)<5) { if (random(10)<5) {
s = -s; s = -s;
} }


c = color(random(255), random(255), random(255)); //c = color(random(255), random(255), random(255));
// naim hack (PORNJ Pink: RGB 252/23/218)
if(random(0,2) > 1) {
// pink
c = color(int(random(220,255)), int(random(0,55)), int(random(210,230)));
}
else {
// orange
c = color(int(random(230,255)), int(random(160,180)), int(random(0,1)));
}
//c = color(int(random(255)), int(random(255)), int(random(255)));
} }


public void draw() { public void draw() {
Expand All @@ -74,12 +84,14 @@ class Wave {


g.beginDraw(); g.beginDraw();
g.background(0); g.background(0);
g.stroke(c);
float bright_mult = .5 + (1+sin(step))/4;
g.stroke(color(red(c)*bright_mult, green(c)*bright_mult, blue(c)*bright_mult));


for (int x=0; x<WIDTH; x++) { for (int x=0; x<WIDTH; x++) {
h = sin(step) * a; h = sin(step) * a;
step = step + f; step = step + f;
g.line(x, y, x, y+h); g.line(x, y+h*.1, x, y+h*random(1,1.2));
} }


g.endDraw(); g.endDraw();
Expand Down
15 changes: 7 additions & 8 deletions domeTransmitter.pde
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ int transmit_port = 58082;
int WIDTH = 40; int WIDTH = 40;
int HEIGHT = 160; int HEIGHT = 160;
boolean VERTICAL = false; boolean VERTICAL = false;
int FRAMERATE = 40; int FRAMERATE = 45;
int TYPICAL_MODE_TIME = 300; int TYPICAL_MODE_TIME = 300;


float bright = 0.05; // Global brightness modifier


Routine drop = new DropTheBomb(); Routine drop = new Seizure();
Routine pong = new Pong(); Routine pong = new Pong();



Routine[] enabledRoutines = new Routine[] { Routine[] enabledRoutines = new Routine[] {
// new Warp(new WarpSpeedMrSulu(), false, true, 0.5, 0.5), new Warp(new WarpSpeedMrSulu(), false, true, 0.5, 0.5),
// new Warp(null, true, false, 0.5, 0.5), // new Warp(null, true, false, 0.5, 0.5),
new Bursts(), new Bursts(),
// new Chase(), // new Chase(),
new ColorDrop(),
// new Fire(), // new Fire(),
// new NightSky(),
// new RGBRoutine(), // new RGBRoutine(),
// new RainbowColors(), // new RainbowColors(),
// new Waves(), new Waves(),
}; };


int w = 0; int w = 0;
Expand All @@ -45,7 +45,6 @@ int ZOOM = 1;
long modeFrameStart; long modeFrameStart;
int mode = 0; int mode = 0;


float bright = .5; // Global brightness modifier


int direction = 1; int direction = 1;
int position = 0; int position = 0;
Expand Down

0 comments on commit 6f1f119

Please sign in to comment.