topical media & game development

talk show tell print

graphic-processing-algorithm-Ch02-p42-p42.pde / pde



  size(500,100);
  for(int i=0; i<500; i++){
    int x = i;
    int y = int(50. * sin(PI/180.* i) );
    point(x, y+50);
    println("x = " + x + " y = " + y);
  }
  


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