Hi @Sarah ! Here’s a sketch I’ve been working w/ many months ago.
It’s about creating a class callback which triggers every time the canvas resizes.
It’s still experimental. Yet to finish it % . But it’s runnable already:
CanvasResizeWatcher.java
/**
* Canvas Resize Watcher (v1.0)
* GoToLoop (2018/May/04)
* Developed on P3 (v3.3.5)
*
* https://Discourse.Processing.org/t/event-called-when-canvas-is-resized/6643/8
* https://Gist.GitHub.com/GoToLoop/1d1eb18f468a7d5758469707276b6ea1
*/
package gotoloop.listener;
This file has been truncated. show original
Canvas_Resize_Watcher.pde
/**
* Canvas Resize Watcher (v1.0)
* GoToLoop (2018/May/04)
* Developed on P3 (v3.3.5)
*
* https://Discourse.Processing.org/t/event-called-when-canvas-is-resized/6643/8
* https://Gist.GitHub.com/GoToLoop/1d1eb18f468a7d5758469707276b6ea1
*/
import gotoloop.listener.CanvasResizeWatcher;
This file has been truncated. show original
4 Likes