You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the / doesn’t work, also i have to write type=“module” in other tutorials don’t appear this type only:
<script src="sketch.js"></script>
Also i still think that window.setup = setup and window.draw=draw at the end of sketch.js should no be there…if you export and import a js file, just it, don’t know why window is doing here…
Most appropriate sub-area of p5.js?
p5.js version
1.11.1
Web browser and version
Firefox
Operating system
Linux
Steps to reproduce this
Steps:
Seems very strange: in the head of the index.html i write:
Note the / at the beginning of the path…in this case.working fine…
But in the div of the canvas:
Works but
With the / doesn’t work, also i have to write type=“module” in other tutorials don’t appear this type only:
<script src="sketch.js"></script>
Also i still think that window.setup = setup and window.draw=draw at the end of sketch.js should no be there…if you export and import a js file, just it, don’t know why window is doing here…
Would be nice if any dev could fix this-
Code
https://drive.google.com/file/d/1J_BBQANpS7U7OEIRlrfx-UCeveXPhDUG/view
Also could be an idea or enhancement for p5.js 2.0
Snippet:
// Paste your code here :)
The text was updated successfully, but these errors were encountered: