void setup() { size(200,200); background(255); smooth(); } void draw() { stroke(0); strokeWeight(abs(mouseX-pmouseX)); //Sets the stroke width equal to the speed of the mouse line(pmouseX,pmouseY,mouseX,mouseY); //Draws a continuous line following the mouse }