From 1aa951fc2b4970674510a18c2e0f1e92378dc446 Mon Sep 17 00:00:00 2001 From: Florrie Date: Thu, 9 Aug 2018 18:59:23 -0300 Subject: Fix unwanted aliasing of progress bar --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.js') diff --git a/index.js b/index.js index 0d00cab..8703cf9 100644 --- a/index.js +++ b/index.js @@ -23,7 +23,7 @@ class ATBBar { ctx.save() ctx.beginPath() - ctx.rect(0, 0, this.canvas.width * this.progress, this.canvas.height) + ctx.rect(0, 0, Math.round(this.canvas.width * this.progress), this.canvas.height) ctx.clip() ctx.fillStyle = '#77F' -- cgit 1.3.0-6-gf8a5