We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi. I'm working in a two windows project. First one renders the sketch, second one is intended to control the sketch (with buttons, etc). Btw, I'm working with Eclipse.
As main window will be projected in a wall, and I want to take ride of the mouse cursor, I wonder if there's a way to reproduce the first window content in a little area of the second window, and control mouse events from there. Event's handling would be quite simple, but I'm not sure on how to render content from one window to another.
Answers
http://forum.Processing.org/two/discussions/tagged?Tag=papplet.runsketch()
Great. Thanks. I'm on the way now.
Actually, readings are being interesting, but I still don't know how to draw the exact same content from one window into a section of the another window.
I suspect there's a method to get the graphics from one applet and draw that in another place. I'm looking for it.
https://processing.org/reference/get_.html
Thanks. I'm trying things like that.
ie:
and
First example leaves main windows black (erasing original content).
Processing 1 & 2:
Processing 3:
Cool, that worked. Thanks a lot.
I just adapted the code for Eclipse.