Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

How to reset a PGraphics ?

$
0
0
Hello !

I would like to animate something inside a PGraphics (with a transparent background) but I don't find any way to reset totally a PGraphics instance. I would like to apply a transparentBackground that erase all the content I have inside the PGraphics.

The only way I found is to create a new PGraphics for each frame, but it take immediatly too much memory and crashes.

Do you think it's possible to add the "reset-feature" in the next release ? It could be very helpful.

Thanks ! 


Viewing all articles
Browse latest Browse all 1768

Trending Articles