We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi everyone! I need to clear a graphic (createGraphics) in p5, what should i use?
if i use background(0), the graphic will be cleared, however the pixels will be still black, and thats not good beacuase i am using multiple graphics and their background has to be transparent
i tried using clear() but it looks like its not working on a graphic in p5 only in processing :(
any help would be appreciate!
Answers
This is my attempt. I think it is easier using an image object. There could be a better way? I let forum goers provide feedback. Relevant code in generatePG().
Kf
Use pg.clear(); pg.background(0,0);