.

 

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 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)

Fishing Party. (February 10)

A Joke. (February 5)

The Vet, by Paul Ford. (February 4)

The Swings. (January 31)

Tag Cloud, by Paul Ford. (January 30)

Another Veil-lifter Pitched, by Paul Ford. (January 29)

Saturday, by Paul Ford. (January 28)

Love Explosion. (November 2)

$5 Chocolate Bar. (October 1)

Big O. (September 23)

More...
Tables of Contents