diff options
author | David Thompson <dthompson2@worcester.edu> | 2023-10-23 22:37:19 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2023-10-23 22:37:19 -0400 |
commit | e35626532ee4e3e29b26b9415eaac4886484ad68 (patch) | |
tree | 2d91f80cb10f1014d224f1d6e9af52cda6fdca8b /boot.js | |
parent | ee937abcfeb7bd65617790936bb6ee25a2b1760a (diff) |
load images programatically.
Diffstat (limited to 'boot.js')
-rw-r--r-- | boot.js | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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(); |