Skip to content

Commit

Permalink
arrow dot
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahhh committed Dec 16, 2024
1 parent c2bbb1b commit 20d87f9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -838,21 +838,24 @@ async function main() {
stretch: 1,
stretchMin: 0,
stretchMax: 50,
padStart: 4,
padStart: 3,
padEnd: 8,
flip: (getSector(angle) % 2 === 0) !== angleAroundCenter > 0,
straights: false,
});

lyrTop.do((lyr) => {
lyr.beginPath();
lyr.lineWidth = 2;
lyr.strokeStyle = "#fce8a7cc";
lyr.fillStyle = "#fce8a7cc";
lyr.shadowColor = "rgba(0,0,0,0.6)";
lyr.shadowOffsetY = 2;
lyr.shadowBlur = 10;

lyr.beginPath();
lyr.arc(...removalPt, 3, 0, Math.PI * 2);
lyr.fill();

drawArrow(lyr, arrow, {
headLength: Math.min(12, dist / 4),
headWidth: 8,
Expand Down

0 comments on commit 20d87f9

Please sign in to comment.