Skip to content

Commit 20019f1

Browse files
committed
Adjusted rim width and position
1 parent 0576ff3 commit 20019f1

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/main/Canvas.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public Canvas() {
3636
this.setOpaque(false);
3737
this.addMouseListener(this);
3838
this.addMouseMotionListener(this);
39-
System.out.printf("%s, %s, %s\n", this.getBackground().getRed() ,this.getBackground().getGreen() ,this.getBackground().getBlue() );
4039
}
4140

4241
@Override
@@ -78,7 +77,7 @@ public synchronized void paintComponent(Graphics g) {
7877
p.addPoint(w / 2 + 10, h / 2);
7978
g2d.fillPolygon(p);
8079

81-
g2d.setStroke(new BasicStroke(2));
80+
g2d.setStroke(new BasicStroke(1f));
8281

8382
for (int i = 0; i < pts.size() - 1; i++) {
8483
Point f = pts.get(i);
@@ -87,18 +86,18 @@ public synchronized void paintComponent(Graphics g) {
8786
}
8887

8988
g2d.setColor(Settings.rim);
90-
g2d.setStroke(new BasicStroke(4));
89+
g2d.setStroke(new BasicStroke(2));
9190
if (Shortcuts.tsc[Shortcuts.TOPLEFT].isHeld)
92-
g2d.draw(new Arc2D.Double(0, 0, w - 1, h - 1, 90, 90, Arc2D.OPEN));
91+
g2d.draw(new Arc2D.Double(1, 1, w - 3, h - 3, 90, 90, Arc2D.OPEN));
9392

9493
if (Shortcuts.tsc[Shortcuts.TOPRIGHT].isHeld)
95-
g2d.draw(new Arc2D.Double(0, 0, w - 1, h - 1, 0, 90, Arc2D.OPEN));
94+
g2d.draw(new Arc2D.Double(1, 1, w - 3, h - 3, 0, 90, Arc2D.OPEN));
9695

9796
if (Shortcuts.tsc[Shortcuts.BOTLEFT].isHeld)
98-
g2d.draw(new Arc2D.Double(0, 0, w - 1, h - 1, 180, 90, Arc2D.OPEN));
97+
g2d.draw(new Arc2D.Double(1, 1, w - 3, h - 3, 180, 90, Arc2D.OPEN));
9998

10099
if (Shortcuts.tsc[Shortcuts.BOTRIGHT].isHeld)
101-
g2d.draw(new Arc2D.Double(0, 0, w - 1, h - 1, 270, 90, Arc2D.OPEN));
100+
g2d.draw(new Arc2D.Double(1, 1, w - 3, h - 3, 270, 90, Arc2D.OPEN));
102101

103102
}
104103

0 commit comments

Comments
 (0)