Skip to content

Commit

Permalink
better looking wires
Browse files Browse the repository at this point in the history
  • Loading branch information
Lubin Pappalardo committed Oct 5, 2023
1 parent 9a91e36 commit 0750070
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/scripts/wires.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,11 @@ function draw () {

pen.beginPath();
pen.moveTo(start.x, start.y);
pen.lineTo(end.x - (Math.abs(start.x - end.x) / 2), start.y);
pen.lineTo(end.x - (Math.abs(start.x - end.x) / 2), end.y);
pen.lineTo(end.x, end.y);
pen.stroke();

}
}
}
Expand Down

0 comments on commit 0750070

Please sign in to comment.