Sunday, November 06, 2011

Kornelis 2 Version 2

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


void setup() {
  size(500,500);
  background(0);
  noStroke();
}

void draw() {
  int cnt = frameCount;
  
  fill(0,5);
  rect(0,0,width,height);
  translate(255,255);
  rotate(cos(cnt/1000)*20);
  for(int i=0; i < 100; i++) {
    fill(250,i*2,cnt%255,40);
    rect(0,10+
         100*sin(frameCount/10),cnt%40,200+
         cos(cnt/50)*100);
    rotate(i);
  }
  
  for(int i=0; i < 45; i++) {
    fill(50,i*2,cnt%255,20);
    rect(30,10+
         10*sin(frameCount/20),5+cnt%20,20+
         cos(cnt/50)*300);
    rotate(i*8);
  }
  }

info info

submitted by: spam04
views: 

Woop woop

treeThis sketch has a parent
Tags:

comments comment

loading loading...

 

Add a comment: