canvas: Add strokeRect binding.

This commit is contained in:
David Thompson 2024-12-13 14:58:04 -05:00
parent f6c7d000c0
commit 5e4d6cce1c
2 changed files with 4 additions and 0 deletions

View file

@ -71,6 +71,7 @@ window.addEventListener("load", async () => {
setTextAlign: (ctx, align) => ctx.textAlign = align,
clearRect: (ctx, x, y, w, h) => ctx.clearRect(x, y, w, h),
fillRect: (ctx, x, y, w, h) => ctx.fillRect(x, y, w, h),
strokeRect: (ctx, x, y, w, h) => ctx.strokeRect(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),
restore: (ctx) => ctx.restore(),