We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, is it possible to load an image from the web into your p5js sketch?
I tried this but it didn't work: img = loadImage("http://myServer.com/assets/160x160/43.png");
Thanks!
Answers
Does the link actually work? I just tried it in a browser and got nowhere.
You can take any image URL you like to test it: http://i.imgur.com/dFzrjD5.png
So, yes, the link works. But it seems that you can load images from the web with loadImage() in p5js? Unlike with Processing.
http://p5js.org/reference/#/p5/preload
Yeah, I know ... but that only refers to locally stored files. I'd like to load a remote image ... and that doesn't seem to work? Unlike in Processing.
Thanks a lot!