synthing

a waveform sequencing synth on the web
Log | Files | Refs | Submodules

commit cba0fdc264bd2fd6dc83bd43237878531aca9a33
parent a09fcf685bc4c14a44f70e68767f4d31e1977b09
Author: Massimo Siboldi <mdsiboldi@gmail.com>
Date:   Sun, 25 Mar 2018 23:26:43 -0700

Flip wheel, fix empty state

Diffstat:
Msrc/Wheel/index.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Wheel/index.js b/src/Wheel/index.js @@ -15,12 +15,12 @@ const drawCircle = (canvas, percent) => { context.strokeStyle = "#00000011"; if (percent === 0) { - context.arc(radius, radius, innerRadius, 0, Math.PI); + context.arc(radius, radius, innerRadius, 0, 2 * Math.PI); context.stroke(); } else { - const begin = -(Math.PI / 2); - const end = 2 * Math.PI * percent - Math.PI / 2; + const begin = -(Math.PI * 3/2); + const end = 2 * Math.PI * percent - Math.PI * 3/2; context.arc(radius, radius, innerRadius, end, begin); context.stroke();