Wednesday, January 20, 2010

Colorwave

// just type here
// and click "save" when your done

int fc = 0;
int i;

void setup() {
  size(800, 600);
noStroke();
i = height/2;
background(255);
  }

void draw() {
    //fill(255,5);
    //rect(0,0,width,height);
   translate(width/2,height/2);
    rotate(frameCount/30.0);
    translate(-width/2,-height/2);

    fc++;
  for(int j=0; j<width; j+=5) {
      fill(random(0,255),random(0,255),random(0,255));
      rect(j, i, 5, (pow(10,20))/pow(frameCount,10) * sin(i/200.0 + i*i*j/50.0 +fc/10.0));
  }
    rotate(frameCount/200);
    translate(-width/2,-height/2);
}

info info

submitted by: DARYL_Gamma
views: 904


treeThis sketch has a parent
Tags: black, white

comments comment

loading loading...

 

Add a comment: