Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to have multiple layers in Processing?

Is there a way to have multiple layers in Processing ?

Each layer would have its own setup/draw context.

like image 200
gluon Avatar asked Sep 05 '13 14:09

gluon


1 Answers

Yes, sort of. Consider using PGraphics (essentially buffered, independent canvases). You can then manipulate your images inside each PGraphic, making each the size of the screen (forming layers), or move the PGraphics about the screen as objects. Here's a place you might start.

like image 178
gromiczek Avatar answered Oct 20 '22 23:10

gromiczek