This example demonstrates how to use async/await together with Promise.all()
Three random images are fetched asynchronously from the internet. After all images finish loading, they are drawn together on the canvas. Using loadImage() wrapped inside a promise allows better control over loading multiple resources efficiently.
Async Await with Promise.all: Edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.