Not really a sample, just an empty sketch for you to play with, using your browser's JS console.
Demonstrates basic event handling. Draw by dragging with the mouse; left-button for blue, right-button for purple.
Demonstrates how the ability to bind multiple event handlers to a single event type simplifies dealing with lots of independent animating objects.
Demonstrates Gabor noise with an extremely non-isotropic kernel.