It seems maybe to be an issue with loadImage() and svg. I get the following error:
InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable p5.js:14640
[49]</p5.Renderer2D.prototype.image http://localhost:8000/libraries/p5/p5.js:14640:5
[61]</p5.prototype.image http://localhost:8000/libraries/p5/p5.js:20795:3
bound self-hosted:918:17
setup http://localhost:8000/01_P/P_2_1_1_04/:62:3
p5/this._setup< http://localhost:8000/libraries/p5/p5.js:11564:7
bound self-hosted:912:17
p5/this._runIfPreloadsAreDone http://localhost:8000/libraries/p5/p5.js:11507:7
p5/this._decrementPreload http://localhost:8000/libraries/p5/p5.js:11516:5
bound self-hosted:914:17
[61]</p5.prototype.loadImage/img.onload
While something seems to get loaded when testing the loadImage() with a callback, if you try to console.log() any of the images in the shapes
array, it doesn't return anything in Firefox.
Things seem to work in Chrome.