DANIEL SHIFFMAN LEARNING PROCESSING THE NATURE OF CODE
3-5

mouse key events

Click the mouse to draw a rectangle.
Press any key to erase the background.

SKETCH RUNNING VIA P5.JS
JS CODE / PDE CODE ON GITHUB