In regular Processing, the PGraphics of the screen drawing surface is 'g'. So you can use g.line(...) instead of line(...). This doesn't seem to work in processing.py.
Thanks. Is that documented anywhere?
Well, anyway, I've pushed a fix for this. Please git pull and try it out.
Thanks. I learned about "g" only yesterday while browsing the Processing forums. It helps for writing functions that can draw on the screen or a PGraphics object.