We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I want to add/remove an ellipse using a press of a button in Processing. I use void keyPressed() and void keyReleased() for the keys. But how can I use if statements to add/remove an ellipse? Please give me some hints. Thank you.
Answers
Moved to How To category, seems fitting given your subject line...
Have a global variable, a boolean. Set it to true in keyPressed, to false in keyReleased, for example (or make it to toggle in keyPressed).
Draw the ellipse in draw(), depending on this variable:
solved?