topical media & game development

talk show tell print

graphic-processing-algorithm-Ch10-p253-p253.pde / pde



  import processing.pdf.*;
  void setup() {
    size(300, 300);
    beginRecord(PDF, "positions.pdf");
  }
  void draw() {
  }
  void mouseDragged() {
    fill(random(255));
    rect(mouseX, mouseY,10,10);
  }
  void keyPressed() {
    endRecord();
    exit();
  }
  


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