topical media & game development

talk show tell print

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



  size(500,500, P3D);
  camera(-20,20,-20,0,0,0,0,0,1);
  for(float x=-10; x<10; x+=0.3)
    for(float y=-10; y<10; y+=0.3)
      for(float z=-10; z<10; z+=0.3)
        if((x*x + y*y + z*z)>100 && (x*x + y*y + z*z)<110)
          point(x,y,z);
  


(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.