/* path_drawing.pde Edited by Justin Hsia (orig. Susan Evans) Draw lines that follow the mouse's path. */ void setup() { size(500,500); // set drawing canvas size strokeWeight(8); // thicker lines stroke(0,0,0, 120); // black line with some transparency frameRate(30); // slow down the frame rate } void draw() { line(pmouseX, pmouseY, mouseX, mouseY); }