From a83e75b2e2fb93aeb257ebdde3972de787458951 Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Sun, 6 Jan 2019 22:59:49 +0300 Subject: [PATCH] View: Fix go go time gradient --- public/src/js/view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/js/view.js b/public/src/js/view.js index d45b267..02b7630 100644 --- a/public/src/js/view.js +++ b/public/src/js/view.js @@ -652,7 +652,7 @@ var barH = 130 * mul if(this.gogoTime || ms <= this.gogoTimeStarted + 100){ - var grd = ctx.createLinearGradient(padding, 0, this.winW, 0) + var grd = ctx.createLinearGradient(padding, 0, winW, 0) grd.addColorStop(0, "#512a2c") grd.addColorStop(0.46, "#6f2a2d") grd.addColorStop(0.76, "#8a4763") @@ -676,7 +676,7 @@ var currentGradient = gradients[sound] ctx.globalCompositeOperation = "lighter" do{ - var grd = ctx.createLinearGradient(padding, 0, this.winW, 0) + var grd = ctx.createLinearGradient(padding, 0, winW, 0) grd.addColorStop(0, "rgb(" + currentGradient + ")") grd.addColorStop(1, "rgba(" + currentGradient + ", 0)") ctx.fillStyle = grd