Oct 07
Drawing when mouse is pressed in Processing
Fundamentals of Physical Computing
Lab Five: Processing, part 6: Drawing when the mouse is pressed
Using a conditional “if” statement, change your program so that it only draws when the mouse is pressed. You can use the mousePressed variable to determine the current state of the mouse button.