From ee7dc953bfcc451a04f9570d85703b960cccd921 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Wed, 1 Jan 2020 21:51:13 -0800 Subject: [PATCH] Fix clearRect for [0, 0.5] --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 6dbd3221..d4abc7ef 100644 --- a/src/index.js +++ b/src/index.js @@ -326,7 +326,7 @@ context.translate(0.5, 0.5); function drawScene() { ReactDOM.render(, rootElement); - context.clearRect(0, 0, canvas.width, canvas.height); + context.clearRect(-0.5, -0.5, canvas.width, canvas.height); elements.forEach(element => { element.draw(rc, context);