Processing code for interactive drawing.