.

 

Square/Sphere/Static

Left, right, up, down, click.

  
float a;
int press=0;

void setup() {
  size(425, 400);
  background(0,0,80);
  stroke(255);
  fill(255);

}

void loop() {
  translate(width/2,height/2,0);
  if (press>0) {
    for (int i=0;i<2000;i++){
      a+=.05;
      if(a >= TWO_PI*2)
      {
        a = 0.0;
      }
      push();
      rotateY(a);
      translate(0,0,mouseY);
      point(i/4,i/4);
      pop();
    }
  }
  for (int j=1;j<4;j++) {
    for (int k=1;k<mouseX*4;k++) {
      if (press>0) {
        rotateZ(a/2);
      }
      point(random(mouseY)-mouseY*.5,
        random(mouseY)-mouseY*.5);
    }
  }

}

void mousePressed() {
  press=1;
}
void mouseReleased() {
  press=0;
}

Built with Processing.


[Top]

Ftrain.com

PEEK

Ftrain.com is the website of Paul Ford and his pseudonyms.

There is a Facebook group.

And six-words-only Twitter posts.

See also: Gary Benchley, Rock Star, a novel; Harper's Magazine; NPR's All Things Considered; The Morning News.

POKE


Syndicate: RSS1.0, RSS2.0
Links: RSS1.0, RSS2.0

Contact

© 1974-2007 Paul Ford

Recent

I'm on a Panel at SxSW. (March 8)

Elsewhere: Just Like Heaven. (January 11)

But melts just like a little girl. (August 26)

Panel/Unicode table for you. (August 21)

Been a while. (February 16)

Learning to Fear the Semantic Web, by Paul Ford. (October 15)

Fixed. (September 18)

NYU. (September 18)

Also. (September 11)

Steering Wheel. (September 11)

I never told you because I was kind of out of it for a while there but. (April 1)

Sasquatch. (March 26)

Over There. (March 24)

Signs. (March 21)

Eloquence Personified. (March 20)

Note. I wonder what the poor folks are doing tonight. (March 20)

The Wind Chest, by Paul Ford. (March 18)

Six-Word Reviews of 763 SXSW Mp3s. (March 13)

This Is Just To Say. (March 3)

Clouds. (February 27)

More...
Tables of Contents