From f9fc4d26ec5fca9ee175c8a6fbcdd0fa36f10947 Mon Sep 17 00:00:00 2001 From: sanine Date: Thu, 16 Nov 2023 14:50:00 -0600 Subject: clear out js files --- src/ui/canvas.js | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/ui/canvas.js (limited to 'src/ui/canvas.js') diff --git a/src/ui/canvas.js b/src/ui/canvas.js deleted file mode 100644 index b04b966..0000000 --- a/src/ui/canvas.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -export function draw(canvas, size, fn) { - const ctx = canvas.getContext("2d"); - const scale = canvas.clientWidth/size; - ctx.save(); - ctx.scale(scale, scale); - ctx.clearRect(0, 0, size, size); - fn(ctx); - ctx.restore(); -} -- cgit v1.2.1