Commit 926b1634 authored by Bui's avatar Bui Committed by GitHub

Merge pull request #104 from LoveEevee/view-fix-go-go-time-gradient

View: Fix go go time gradient
parents 51e270d3 a83e75b2
...@@ -652,7 +652,7 @@ ...@@ -652,7 +652,7 @@
var barH = 130 * mul var barH = 130 * mul
if(this.gogoTime || ms <= this.gogoTimeStarted + 100){ 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, "#512a2c")
grd.addColorStop(0.46, "#6f2a2d") grd.addColorStop(0.46, "#6f2a2d")
grd.addColorStop(0.76, "#8a4763") grd.addColorStop(0.76, "#8a4763")
...@@ -676,7 +676,7 @@ ...@@ -676,7 +676,7 @@
var currentGradient = gradients[sound] var currentGradient = gradients[sound]
ctx.globalCompositeOperation = "lighter" ctx.globalCompositeOperation = "lighter"
do{ 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(0, "rgb(" + currentGradient + ")")
grd.addColorStop(1, "rgba(" + currentGradient + ", 0)") grd.addColorStop(1, "rgba(" + currentGradient + ", 0)")
ctx.fillStyle = grd ctx.fillStyle = grd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment