|
|
|
@ -281,8 +281,13 @@ HuesCore.prototype.updateVisualiser = function() { |
|
|
|
|
this.vCtx.clearRect(0, 0, this.vCtx.canvas.width, this.vCtx.canvas.height); |
|
|
|
|
|
|
|
|
|
let gradient=this.vCtx.createLinearGradient(0,64,0,0); |
|
|
|
|
gradient.addColorStop(1,"rgba(255,255,255,0.6)"); |
|
|
|
|
gradient.addColorStop(0,"rgba(20,20,20,0.6)"); |
|
|
|
|
if(this.invert) { |
|
|
|
|
gradient.addColorStop(1,"rgba(20,20,20,0.6)"); |
|
|
|
|
gradient.addColorStop(0,"rgba(255,255,255,0.6)"); |
|
|
|
|
} else { |
|
|
|
|
gradient.addColorStop(1,"rgba(255,255,255,0.6)"); |
|
|
|
|
gradient.addColorStop(0,"rgba(20,20,20,0.6)"); |
|
|
|
|
} |
|
|
|
|
this.vCtx.fillStyle = gradient; |
|
|
|
|
|
|
|
|
|
let barWidth = 2; |
|
|
|
|