Persistent Shape with Mouse?

you need to delete the canvas in draw:

(example in processing java)

void setup() {
  // init
  size(1200, 600, P3D);
  background(255);
} // func 

void draw() {
  // runs on and on 
  background(255);

  fill(255, 0, 0);
  ellipse(mouseX, mouseY, 
    5, 5);
} // func
1 Like