Add script scheduler and pre/post visual effects system.

This commit is contained in:
David Thompson 2024-05-23 11:43:59 -04:00
parent 67c25d93cb
commit 98ae464ab9
6 changed files with 260 additions and 10 deletions

View file

@ -67,7 +67,8 @@ window.addEventListener("load", async () => {
fillRect: (ctx, x, y, w, h) => ctx.fillRect(x, y, w, h),
fillText: (ctx, text, x, y) => ctx.fillText(text, x, y),
drawImage: (ctx, image, sx, sy, sw, sh, dx, dy, dw, dh) => ctx.drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh),
setScale: (ctx, sx, sy) => ctx.scale(sx, sy),
scale: (ctx, sx, sy) => ctx.scale(sx, sy),
translate: (ctx, x, y) => ctx.translate(x, y),
setTransform: (ctx, a, b, c, d, e, f) => ctx.setTransform(a, b, c, d, e, f),
setImageSmoothingEnabled: (ctx, enabled) => ctx.imageSmoothingEnabled = (enabled == 1)
},