nick /224 /spin_squares

//PFont font;
String[] temp_array;
float a, b, c, q, w, e, d, r;
float counter;

void setup(){
  size(400,200);
  smooth();
  strokeWeight(1);
  counter = 1000;
  getData();
}

void draw(){
  background(255);
  fill(0);
    //getData();
    counter--;
    if(counter <= 0){
    getData();
    counter = 1000;
    }
    fill(30,30);
    rect(0,0,map(counter,0,1000,0,width),height-1);
    //println(counter);
    translate(110,50);
        pushMatrix();
        translate(50,50);
                rotate(a);
        rect(-25,-25,50,50);
        popMatrix();
        pushMatrix();
        translate(100,50);
        rotate(b);
        rect(-25,-25,50,50);
        popMatrix();
        pushMatrix();
        translate(150,50);
        rotate(c);
        rect(-25,-25,50,50);
        popMatrix();
        pushMatrix();
        translate(200,50);
        rotate(d);
        rect(-25,-25,50,50);
        popMatrix();
        a += q;
        b += w;
        c += e;
        d += r;
}


void getData(){
        String query = "http://transmogrify.me/loungeout.php";

        println(query);
        String[] results = loadStrings(query);
        for ( int i=0; i

Page Details
Contact DANM  |  Digital Arts and New Media  |  Arts Division  |  Grad Division
login