diff options
author | sanine <sanine.not@pm.me> | 2023-11-16 14:50:00 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-11-16 14:50:00 -0600 |
commit | f9fc4d26ec5fca9ee175c8a6fbcdd0fa36f10947 (patch) | |
tree | f190e6e465bb563c608a916f41fc8bf686ea2897 /src/ui/canvas.js | |
parent | 7825b92ce3be95a0ce1dfea9388adbaadce83b1f (diff) |
clear out js files
Diffstat (limited to 'src/ui/canvas.js')
-rw-r--r-- | src/ui/canvas.js | 11 |
1 files changed, 0 insertions, 11 deletions
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(); -} |