Persistent Shape with Mouse?

  • setup () runs only once

  • draw() runs on and on - everything that is permanent needs to be drawn here

  • mousePressed is only called once when you click the mouse

Therefore you need to draw in draw()

1 Like