From 56900b8277e3225b136a1b865495a7f0111126b9 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sun, 9 Apr 2023 22:11:33 +0200 Subject: [PATCH] rectangularTriangle: Close path for outset first edge --- boxes/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boxes/__init__.py b/boxes/__init__.py index 023e649..77ac14f 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -2505,7 +2505,7 @@ class Boxes: if num > 1: width = 2*width - x + r - self.spacing dx = width - x - edges[1].spacing() - self.spacing / 2 - dy = edges[0].spacing() + self.spacing / 2 + dy = edges[0].margin() + self.spacing / 2 overallwidth = width * (num // 2 + num % 2) - self.spacing overallheight = height - self.spacing @@ -2534,6 +2534,7 @@ class Boxes: edges[2](((x-r)**2+(y-r)**2)**0.5) self.step(-edges[2].endwidth()) self.corner(90-alpha, r) + self.edge(edges[0].startwidth()) self.corner(90) self.ctx.stroke()