knob: log compact style and reduce gauge alpha

This commit is contained in:
jean-emmanuel 2016-11-15 15:28:52 +01:00
parent 3798802115
commit 13a6fafcff
2 changed files with 3 additions and 3 deletions

View file

@ -162,7 +162,7 @@ Knob.prototype.draw = function(){
this.ctx.arc(this.width / 2, this.height / 2, this.minDimension / 2 - (this.gaugeWidth + this.margin) * PXSCALE, min, max)
this.ctx.stroke()
this.ctx.globalAlpha = 0.5
this.ctx.globalAlpha = 0.3
this.ctx.beginPath()
this.ctx.strokeStyle = this.colors.gauge
this.ctx.arc(this.width / 2, this.height / 2, this.minDimension / 2 - (this.gaugeWidth + this.margin) * PXSCALE, Math.min(o,d), Math.max(o,d))