There was someone with a similar issue in How to erase object's trail without 'background' in function draw.
The proposed solution in that post is for P5 (so not Processing), but a similar result can be obtained with PGraphics
There was someone with a similar issue in How to erase object's trail without 'background' in function draw.
The proposed solution in that post is for P5 (so not Processing), but a similar result can be obtained with PGraphics