topical media & game development

talk show tell print

graphic-processing-site-examples-Topics-Drawing-ContinuousLines-ContinuousLines.pde / pde



  
Continuous Lines. Click and drag the mouse to draw a line.

  
   
  void setup() {
    size(640, 200);
    background(102);
  }
  
  void draw() {
    stroke(255);
    if(mousePressed) {
      line(mouseX, mouseY, pmouseX, pmouseY);
    }
  }
  


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