xxxxxxxxxx
13
let img;
// Load an image and create a p5.Image object.
function preload() {
img = loadImage('https://avatars.githubusercontent.com/u/1304340?v=4');
}
async function setup() {
createCanvas(600, 600);
img = await loadImage('https://avatars.githubusercontent.com/u/1304340?v=4');
image(img, 0, 0);
}