A simple example of how you can use the pen to draw moving things. All code by me (@kriblo). See commented code inside.