We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi friends,
I'm using surface.setResizable(true);
to can adapt the size of my window, it runs perfectly.
I'm asking if there is an way to catch this event when I change the size with my mouse.
I need to change the size of my PGraphics inside my sketch.
Is it possible ?
Answers
Processing does not generate an event when the window is resized so you have to detect the change yourself. This code demonstrates how to do this.
NOTE: the pre() is a special method that will be executed immediately before each call to draw() because we have registered it.
Thxs for sharing @quark. Here is my example.
Kf