From 0c1fe62b8b6486ce057edf41a25af5c5dc3b340b Mon Sep 17 00:00:00 2001 From: Florrie Date: Sun, 12 Aug 2018 10:13:23 -0300 Subject: Make HP bar render progress correctly --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f2c7412..d1273cb 100644 --- a/index.js +++ b/index.js @@ -184,7 +184,7 @@ class HPBar { ctx.save() ctx.beginPath() - ctx.rect(0, 0, Math.round(this.canvas.width * this.visualProgress), this.canvas.height) + ctx.rect(1, 1, Math.ceil((this.canvas.width - 2) * this.visualProgress), this.canvas.height - 2) ctx.clip() ctx.fillStyle = '#5E5' -- cgit 1.3.0-6-gf8a5