Closed guilhermesilveira closed 1 year ago
Hi, @guilhermesilveira. Thank you for opening this one!
I checked the behavior and found that the option setting by P5Capture.setDefaultOptions()
did not work. This was due to the code execution order difference between global and instance modes.
By using other approaches inspired by your code, the options work, and the mode can be auto-detected without additional options.
I will close this as I have created a new one as #20. Once again, my deepest thanks for your contribution 💚
Perfect! Thanks.
On Fri, Nov 18, 2022, 11:43 tapioca24 @.***> wrote:
Closed #17 https://github.com/tapioca24/p5.capture/pull/17.
— Reply to this email directly, view it on GitHub https://github.com/tapioca24/p5.capture/pull/17#event-7844489783, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAMRP4PS5YAMVHW5PAMRE3WI6IZRANCNFSM6AAAAAAR7GE6MU . You are receiving this because you were mentioned.Message ID: @.***>
This commit adds support for p5 instance mode, allowing the user to record one canvas at a time (any p5 canvas within the page).
Usage is straightforward. As expected, after the canvas is set up, P5Capture is told to use that p5 instance and canvas instead of
window
.