-
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()
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()