Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Targetting a specific canvas ? #10

Open
b2renger opened this issue Jan 18, 2021 · 4 comments
Open

Targetting a specific canvas ? #10

b2renger opened this issue Jan 18, 2021 · 4 comments

Comments

@b2renger
Copy link

Hello !

I was wondering if q5 was able to target a specific (already existing) canvas in a web page ?
This is a restriction in p5js that would be nice to be able to lift in q5 in my opinion.

@ww-wolt
Copy link

ww-wolt commented Mar 23, 2021

Just wanted to raise the same issue.
It would really be cool to define the canvas instead of always adding a canvas on the root dom node.

@rx2347
Copy link

rx2347 commented Oct 25, 2022

I think this is a crucial function, especially for a library that small to replace p5js. And yes, there is other ways to do it, but having parent() would make life so much easier, especially if dealing with multiple instances on the same page.

@dchicchon
Copy link

Are there any workarounds for this issue at the moment? Running into the same problem

@quinton-ashley
Copy link

See my response on issue #7

Adding a canvas to a parentElem could be done for global or instanced Q5!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants