Getting Started with Plan 9 graphics programming

How to write a simple bouncing ball app for the Plan 9 UI. With pictures!