repositories
/
SugarCubes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5d70e4d
)
Fix notch drawing
author
Mark Slee
<mcslee@Mark-Slees-MacBook-Pro.local>
Sun, 26 May 2013 23:12:15 +0000
(16:12 -0700)
committer
Mark Slee
<mcslee@Mark-Slees-MacBook-Pro.local>
Sun, 26 May 2013 23:12:15 +0000
(16:12 -0700)
_Overlay.pde
patch
|
blob
|
blame
|
history
diff --git
a/_Overlay.pde
b/_Overlay.pde
index 3e661d896886d0f4d633e9129e8a9d7fd6056865..6d3266a390106f62eb5d65b6f76cda7521242c8f 100644
(file)
--- 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);
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();
// 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();
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);
fill(0);
rect(xPos, yPos + knobSize + 2, knobSize, knobLabelHeight - 2);