I'm attempting to create an animation in Processing (v 2.0b7 on a Mac) using a PGraphics object and saving the frames to png files. The motion works perfectly and the files save fine, but I need to clear the graphic between each frame and since I am using transparency, I can't simply set a new background. From the online documentation, including the Javadoc for the PGraphics class, it would appear that calling the clear() method should do exactly what I want. However, when I include this call I get a compile error with the message in the title of this post.
Any ideas what I'm doing wrong, or if there's a better way of doing this? I'll paste in a portion of my code below to show what I'm doing ...