a promise that resolves with objects
await Canvas(200);
let logo = load('/q5js_logo.avif');
q5.draw = function () {
image(logo, -100, -100, 200, 200);
};
await Canvas(200);
background(0.8);
await load('/assets/Robotica.ttf');
textSize(28);
text('Hello, world!', -97, 100);
🛠Loads a file or multiple files.
File type is determined by file extension. q5 supports loading text, json, csv, font, audio, and image files.
By default, assets are loaded in parallel before q5 runs
draw. Useawaitto wait for assets to load.