« get me outta code hell

csb-game - Pixelly spin-off of the Command Synergy Battle system used in Final Fantasy XIII
summary refs log tree commit diff
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.js b/index.js
index cbdd4fc..3e46f74 100644
--- a/index.js
+++ b/index.js
@@ -54,6 +54,9 @@ class ATBBar {
     ctx.clearRect(0, 0, this.canvas.width, this.canvas.height)
     ctx.save()
 
+    ctx.fillStyle = 'rgba(255, 255, 255, 0.2)'
+    ctx.fillRect(0, 0, this.canvas.width, this.canvas.height)
+
     ctx.beginPath()
     ctx.rect(0, 0, Math.round(this.canvas.width * this.visualProgress), this.canvas.height)
     ctx.clip()