topical media & game development

talk show tell print

graphic-processing-algorithm-Appendix-p308-x7-p308-x7.pde / pde



  for(int i=0; i<360; i+=10){
    float x1 = sin(radians(i))*30;
    float y1 = cos(radians(i))*30;
    float x2 = sin(radians(i))*40;
    float y2 = cos(radians(i))*40;
    line(x1+50,y1+50,x2+50,y2+50);
  }
  


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