We are about to switch to a new forum software. Until then we have removed the registration on this forum.
How can I use the Google API for images in a p5.js script? (is there anything like imageLoader for p5.js?)
https://p5js.org/reference/
Are you trying to use this API -- the one that has been deprecated since 2011?
And you are loading like this?
If the API returns a URL, you can just use loadImage on that URL:
If not, more details might be helpful. I don't have a lot of experience working with APIs in p5.js, but:
10.5: Working with APIs in Javascript - p5.js Tutorial
Answers
https://p5js.org/reference/
Are you trying to use this API -- the one that has been deprecated since 2011?
And you are loading like this?
If the API returns a URL, you can just use loadImage on that URL:
If not, more details might be helpful. I don't have a lot of experience working with APIs in p5.js, but:
10.5: Working with APIs in Javascript - p5.js Tutorial