We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I was wondering if there was a way to have the loaded in the same location as the tag is. So, if I have the script tag is placed on a HTML page like so:
Tthen the canvas would load as follows:
I know that the location is predefined, but I was wondering if it was possible to change it.
It's possible in instance mode, but that does change the way you code your sketch...
Otherwise not sure: pretty sure this has been asked before. Did you not find any previous answers?
AFaIK, createCanvas() creates its own HTMLCanvasElement and can't be forced to use an already existing 1. :| Most we can do is specify a DOM node parent() for it: :ar!