Problem:
I am trying to use p5.js in my simple app, and including it thus:
<script src="static/js/p5.js"> </script>
What I've tried:
If I put a debugger and look in the console, I do get the functions for p5Color
(for ex) and others. And the script gets loaded on to the page fine. Except createCanvas
doesn't auto-complete and when used in the page, throws above error.
Why? How can I work around this?