From 4eae387e0cd74ffcb742d97fe1509523bbdd0eea Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Sun, 26 May 2013 16:12:15 -0700 Subject: [PATCH] Fix notch drawing --- _Overlay.pde | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/_Overlay.pde b/_Overlay.pde index 3e661d8..6d3266a 100644 --- a/_Overlay.pde +++ b/_Overlay.pde @@ -268,18 +268,17 @@ class OverlayUI { fill(lightGreen); arc(xPos + knobSize/2, yPos + knobSize/2, knobSize, knobSize, HALF_PI + knobIndent, endArc); - // Center circle of knob - fill(#333333); - ellipse(xPos + knobSize/2, yPos + knobSize/2, knobSize/2, knobSize/2); - // Mask notch out of knob fill(color(0, 0, 30)); beginShape(); - vertex(xPos + knobSize/2 - 3, yPos + knobSize - 8); - vertex(xPos + knobSize/2 - 5, yPos + knobSize); - vertex(xPos + knobSize/2 + 5, yPos + knobSize); - vertex(xPos + knobSize/2 + 3, yPos + knobSize - 8); + vertex(xPos + knobSize/2, yPos + knobSize/2.); + vertex(xPos + knobSize/2 - 6, yPos + knobSize); + vertex(xPos + knobSize/2 + 6, yPos + knobSize); endShape(); + + // Center circle of knob + fill(#333333); + ellipse(xPos + knobSize/2, yPos + knobSize/2, knobSize/2, knobSize/2); fill(0); rect(xPos, yPos + knobSize + 2, knobSize, knobLabelHeight - 2); -- 2.34.1