We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am trying to use the p5.dom.js library for showing a webpage in the canvas if some buttons are pressed, I don't want to link the page with createA() but to actually visualize it, is there any way?
Thanks!
Answers
It would be easier to simply open the page in an iframe...
Visualising it would involve rendering the requested page to an offscreen buffer; rendering this to an image and then loading the image into the canvas. Looks like html2canvas already does this; but whether you can get that to play nicely alongside p5 is another matter...
Ok, thanks, with the iframe works well!
Hi, giulioisac. How did you work with iframe? There is an function for that?
Hey, here an example to put in the setup function:
https://forum.Processing.org/two/discussions/tagged/iframe