p5: interaction, mouse input

line example

mouse press with if statement example + mouse events, advance the tutorial to see it

Exercises

Reproduce the sketches in this video.
They don’t have to be exact replicas, try to approximate their general behavior.
Post them to the discord at the beginning of the next class, remember to save them!
Remember to save your sketches with non-random names and to create a new sketch for each of the 4 exercises.