Web Editor : not defined width

Callback draw() doesn’t await for img to be fully loaded, much less for some1 to drop an image into the browser! :face_with_raised_eyebrow:

In my own sketch, I check whether img exists before using image(). And you should do the same. :wink:

1 Like