Kuan-Ju Project-0

by kuanjuw @ 10:11 pm 12 January 2010

GDE Error: Unable to load profile settings

/*project-0 reproduce Michael Noll's computer art:
Ninety Parallel Sinusoids With Linearly Increasing Perio*/
float yoffset=40;
float amplitude=30;  //the 1/2 of y peak-to-peak difference
float period=30/PI;  //the initional x wavelength
float shift=PI;      //the amount that shift to left
 
void setup(){
  size(590,590);
  background(255);
  smooth();
  noFill();
  noLoop();
}
 
void draw(){
  stroke(0);
  for(int i=0;i<90;i++){   //reproduce the curve 90 times with different yposition
    beginShape();
       for(int x=0;x<=width;x++){
       float y = amplitude*sin(x/period+shift)+yoffset; // y=asin(bx+c)+d
       vertex(x,y);         //draw cruve
       period+=PI/100;      //linearly increase the period
     }
    endShape();
    period=30/PI;  //reset the period
    yoffset+=5.8;  //shift the yposition down
  }
}

Kuan-Ju’s Crazy Pong

Kuan-Ju’s Crazy Pong is super crazy. Every time when the ball hits the paddle, the ball moves faster and the paddle gets shorter. The color of background changes when the ball bounces the paddle, which will disturb you and drive you crazy. Let’s see how long you can stay alive.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2016 Special Topics in Interactive Art & Computational Design | powered by WordPress with Barecity