Canvas Location

edited January 2016 in p5.js

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:

<p><script src="/js/file.js" type="text/javascript"></script></p>

Tthen the canvas would load as follows:

<p><script src="/js/file.js" type="text/javascript"></script><canvas id="defaultCanvas0" class="" width="1000" height="800" style="width: 500px; height: 400px;"></canvas></p>

I know that the location is predefined, but I was wondering if it was possible to change it.

Thanks! :)

Answers

Sign In or Register to comment.