Skip to content
Snippets Groups Projects
Commit 8d1c885c authored by Tim Molter's avatar Tim Molter
Browse files

triangle marker tweaks

parent 67931cb4
No related branches found
No related tags found
No related merge requests found
......@@ -32,8 +32,8 @@ public class TriangleDown extends Marker {
// Make a triangle
Path2D.Double path = new Path2D.Double();
path.moveTo(xOffset - halfSize, 1 + yOffset - halfSize);
path.lineTo(xOffset, 1 + yOffset - halfSize + markerSize + 1);
path.lineTo(xOffset - halfSize + markerSize + 1, 1 + yOffset - halfSize);
path.lineTo(xOffset, 1 + yOffset - halfSize + markerSize);
path.lineTo(xOffset - halfSize + markerSize, 1 + yOffset - halfSize);
path.closePath();
g.fill(path);
......
......@@ -31,9 +31,9 @@ public class TriangleUp extends Marker {
// Make a triangle
Path2D.Double path = new Path2D.Double();
path.moveTo(xOffset - halfSize, yOffset - halfSize + markerSize + 1);
path.lineTo(xOffset - halfSize + markerSize + 1, yOffset - halfSize + markerSize + 1);
path.lineTo(xOffset, yOffset - halfSize);
path.moveTo(xOffset - halfSize, yOffset - halfSize + markerSize - 1);
path.lineTo(xOffset - halfSize + markerSize, yOffset - halfSize + markerSize - 1);
path.lineTo(xOffset, yOffset - halfSize - 1);
path.closePath();
g.fill(path);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment