topical media & game development

talk show tell print

graphic-processing-algorithm-Appendix-p313-4-p313-4.pde / pde



  for(int x=0; x<width; x+=20)
    for(int y=0; y<height; y+=10){
      if(y%20!=0 && x==0)rect(x,y,8,8);
      if(y%20!=0 && x>width-21)rect(x+10,y,8,8);
      else
        rect(x+(y%20),y,18,8);
    }
  


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