topical media & game development
graphic-processing-algorithm-Appendix-p311-x14-p13-p311-x14-p13.pde / pde
void setup(){
size(200,200);
}
void draw(){
noFill();
background(255);
for(int y=0; y<height; y+=10){
beginShape();
for(int x=0; x<30; x++){
float xx = mouseX;
float xpos = (x/20.)*xx;
float ypos = y+(x%2)*mouseY;
vertex(xpos,ypos);
}
endShape();
}
}
(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.