topical media & game development
graphic-processing-algorithm-Appendix-p324-p33-p324-p33.pde / pde
void setup(){
noFill();
//rectMode(CENTER);
size(500,500);
}
void draw(){
background(255);
for(float i=1; i<20; i++){
pushMatrix();
translate(width/2,height/2);
scale(1/(i/mouseY*90),1/(i/mouseY*90));
rotate(radians(i*mouseX));
line(250,0,250,500);
popMatrix();
}
}
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.