topical media & game development
graphic-processing-algorithm-Appendix-p314-8-p314-8.pde / pde
size(220,440);
noFill();
beginShape();
for(int i=2000; i>10; i-=10){
float x = sin(radians(i-20))*(i/20);
float y = cos(radians(i-20))*(i/20);
vertex(x+110,y+330);
}
for(int i=10; i<2000; i+=10){
float x = sin(radians(i-20))*(i/20+10);
float y = cos(radians(i-20))*(i/20+10);
vertex(x+110,y+330);
}
for(int i=2000; i>10; i-=10){
float x = sin(radians(i-210))*(i/20);
float y = cos(radians(i-210))*(i/20);
vertex(x+120,y+120);
}
for(int i=10; i<2000; i+=10){
float x = sin(radians(i-210))*(i/20+10);
float y = cos(radians(i-210))*(i/20+10);
vertex(x+120,y+120);
}
endShape(CLOSE);
(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.