mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
This commit is contained in:
+2
@@ -131,6 +131,8 @@ public class ResistorInstance implements IComponentInstance {
|
||||
g2d.setStroke(new BasicStroke(1));
|
||||
}
|
||||
g2d.drawLine(leftTopCorner.x, leftTopCorner.y, otherCorner.x, otherCorner.y);
|
||||
g2d.rotate(Math.PI / 4, (leftTopCorner.x + otherCorner.x) / 2,
|
||||
(leftTopCorner.y + otherCorner.y) / 2);
|
||||
g2d.fillRect((leftTopCorner.x + otherCorner.x) / 2 - 10,
|
||||
(leftTopCorner.y + otherCorner.y) / 2 - 10, 20, 20);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user