topical media & game development

talk show tell print

graphic-processing-algorithm-Appendix-p326-5-p326-5.pde / pde



  size(500,500, P3D);
  camera(-10,10,-20,0,0,0,0,0,1);
  beginShape();
  for(int i=0; i<40; i++){
    float x = ((i/2)%2)*2-1;
    float y = (((i+1)/2)%2)*2-1;
    float z = 30-i;
    curveVertex(x,y,z);
  }
  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.