Closed pvzzombs closed 4 months ago
Here is the reference: https://p5js.org/reference/p5/loadImage/
q5's loadImage
doesn't accept a failure callback, it will simply throw an error to the js console. In q5 the third param to loadImage
is a canvas options object.
I will note this as a difference from p5's api in the readme.md.
Replication link: jsfiddle
Javascript code:
Actual behavior:
Expected behavior: