topical media & game development

talk show tell print

graphic-processing-learning-03-example-3-4-example-3-4.pde / pde



  // Learning Processing
  // Daniel Shiffman
  // http://www.learningprocessing.com
  
  // Example 3-4: Drawing a continuous line
  void setup() {
    size(200, 200);
    background(255);
    smooth();
  }
  
  void draw() {
    stroke(0);
    // Draw a line from previous mouse location to current mouse location.
    line(pmouseX, pmouseY, mouseX, mouseY);
  }
  


(C) Æliens 20/2/2008

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.