Thursday, July 18, 2013
Thingy
// just type here
// and click "save" when your done
int i = 0;void setup(){ background(100,100,100); smooth(); size(600,600); frameRate(20);}void draw(){ pushMatrix(); fill(30,200,10,10); stroke(200, 10, 10); translate(sin(radians(i)) * (i / 2) + (width / 2), cos(radians(i)) * (i / 2) + (height/2)); rotate(i); rect(0, 0, i%600, i%600); popMatrix(); i++;}void mousePressed(){ background(255); i=0; }
// and click "save" when your done
int i = 0;void setup(){ background(100,100,100); smooth(); size(600,600); frameRate(20);}void draw(){ pushMatrix(); fill(30,200,10,10); stroke(200, 10, 10); translate(sin(radians(i)) * (i / 2) + (width / 2), cos(radians(i)) * (i / 2) + (height/2)); rotate(i); rect(0, 0, i%600, i%600); popMatrix(); i++;}void mousePressed(){ background(255); i=0; }
comments

Add a comment: