I remember in the past creating an off screen object to draw on and filling/erasing the background with all transparent pixels at the beginning of every draw(), instead of simply redrawing background(color). I can't recall if it was a PImage or PGraphics, but ultimately I would like to accomplish this with a GLGraphicsOffScreen object.
I realize I can probably just iterate over the pixels and force each one to have an alpha of 0, but I remember using a single method to accomplish this (though I don't remember the type of object I was using nor can I seem to find it any of my projects).
TLDR: What's the best way to make a GLGraphicsOffScreen object always have a transparent background?
1