topical media & game development

talk show tell print

graphic-processing-algorithm-Ch06-p132-p132.pde / pde



  void setup(){
    size(300,300);
    frameRate(30);
  }
  float x,y;
  void draw(){
    background(255);
    x = x + random(-3,3);
    y = y + random(-3,3);
    ellipse(x,y,10,10);
  }
  void mousePressed(){
    x = mouseX;
    y = mouseY;
  }
  


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