We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi coders!
I guess, this is a bold and a little bit naive question, but i just wonder if it is possible to stick a part of my sketch into a rectangle, to have different layers with cropped animations.
Imagine InDesign: There you can easily create a rectangle an load an image inside. The frame is like a passepartout for the image and it can be placed anywhere in an document, even on top of other images. That is what i am looking for.
Does anyone know how this can be done?
Have a nice coding-weekend!
Answers
Hi,
do you want to have two seperate sketches or just two drawing surfaces?
For the latter, you could use different PGraphics-objects, use them for your drawing/animation and then show them like two images. Have a look at createGraphics() or this example: