FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
    Examples \ Tutorials \ Courses & Workshops
 
   
 
 
Examples for Processing (BETA) version 91+. If you have a previous version, use the examples included with your software. If you see any errors or have comments, please let us know.



Continuous Lines
by REAS <http://reas.com>

Click and drag the mouse to draw a line.

Updated 27 October 2002
Created 23 October 2002

   
// Continuous Lines 
// by REAS <http://reas.com> 

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







   
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info