The code from Friday's Lab - an example repository with an image
This lab walks students through using mouse presses and key presses to trigger events in processing. It also gives an example of how to select a color on the canvas, and use the color and a click to trigger an event.
I followed these directions to put my code on github.