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 by p5.js Contributors and the Processing Foundation is licensed under CC BY-NC-SA 4.0.