summaryrefslogtreecommitdiff
path: root/boot.js
diff options
context:
space:
mode:
Diffstat (limited to 'boot.js')
-rw-r--r--boot.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/boot.js b/boot.js
index f834d62..b9e8fe1 100644
--- a/boot.js
+++ b/boot.js
@@ -121,6 +121,13 @@ async function load() {
setVolume(audio, vol) {
audio.volume = vol;
}
+ },
+ image: {
+ new(src) {
+ const img = new Image();
+ img.src = src;
+ return img;
+ }
}
});
const scheme = await mod.reflect();