p5.js-svg
p5.js-svg copied to clipboard
Examples are broken
none of the canvases at https://zenozeng.github.io/p5.js-svg/examples/ are rendering.
console errors say
VM419:2 Uncaught ReferenceError: SVG is not defined
at setup (eval at req.onload (demo.js:31:9), <anonymous>:2:28)
at p5._setup (p5.js:64079:27)
at p5._start (p5.js:64002:25)
at new p5 (p5.js:64355:22)
at req.onload (demo.js:32:9)
I'm having the same problem.
i found this to be an issue with versioning. this setup worked for me:
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.3.0/p5.min.js"></script>
<script src="https://unpkg.com/[email protected]"></script>