void setup() { size(1000,1000); background(255); smooth(); //line(100,100,400,200); } void draw() { //background(255);//draw and overlap with white background and again, again stroke(0,50); if(mousePressed) { line(250,250,mouseX,mouseY);//draw over and over ellipse(mouseX,mouseY,5,5); }; } void keyPressed() { save("myDrawing.jpg"); println("File saved!");//printLine }