From 275a8cd81428a8c8e2c9244cb74bfc9bfa30d8e1 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Wed, 19 Apr 2017 15:18:16 +0200 Subject: [PATCH] multixy: increase contrast --- src/browser/js/app/widgets/pads/multixy.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/browser/js/app/widgets/pads/multixy.js b/src/browser/js/app/widgets/pads/multixy.js index ec7e71ef..a119030b 100644 --- a/src/browser/js/app/widgets/pads/multixy.js +++ b/src/browser/js/app/widgets/pads/multixy.js @@ -186,16 +186,18 @@ module.exports = class MultiXy extends _pads_base { y = (100 - clip(this.pads[i].faders.y.percent,[0,100])) / 100 * (this.height - (this.pointSize * 2 + 2) * PXSCALE) + (this.pointSize + 1) * PXSCALE, t = this.labels ? this.widgetData.points[i] : i - this.ctx.globalAlpha = 0.3 this.ctx.strokeStyle = this.colors.custom this.ctx.fillStyle = this.colors.custom this.ctx.lineWidth = PXSCALE * 2 + this.ctx.globalAlpha = 0.3 this.ctx.beginPath() - this.ctx.arc(x, y, this.pointSize * PXSCALE, Math.PI * 2, false) + this.ctx.arc(x, y,(this.pointSize - 2) * PXSCALE, Math.PI * 2, false) this.ctx.fill() + + this.ctx.globalAlpha = 1 this.ctx.beginPath() - this.ctx.arc(x, y, (this.pointSize-1) * PXSCALE, Math.PI * 2, false) + this.ctx.arc(x, y, (this.pointSize - 2) * PXSCALE, Math.PI * 2, false) this.ctx.stroke() this.ctx.globalAlpha = 1