From febece8bd2c9838c17233a5cfd1a9170297352a9 Mon Sep 17 00:00:00 2001 From: Ian Vella Baldacchino Date: Thu, 22 Sep 2016 16:03:35 +0200 Subject: [PATCH] fix for supporting background colours inside the circle. parameter needs to be passed when initializing jquery knob as "innerBg": 'rgba(0,0,0,0.6)', in javascript --- js/jquery.knob.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/jquery.knob.js b/js/jquery.knob.js index 8ad5e4e..ddf4911 100755 --- a/js/jquery.knob.js +++ b/js/jquery.knob.js @@ -762,6 +762,8 @@ c.lineTo(this.xy,this.xy) c.fill(); } + + if (this.o.innerBg) { c.fillStyle = this.o.innerBg; c.fill(); }. Then, you can call $('.knob').knob({ innerBg: '#fff' }) c.lineWidth = this.lineWidth;