From fb822829ec7ee1a1b354830b9f73b599854d3943 Mon Sep 17 00:00:00 2001 From: jan Date: Sun, 8 Mar 2026 22:42:48 -0700 Subject: [PATCH] [Polygon] rect() should call rectangle() with positive width/height no big deal, but this makes vertex order consistent --- masque/shapes/polygon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/shapes/polygon.py b/masque/shapes/polygon.py index dc5afa1..c9617a9 100644 --- a/masque/shapes/polygon.py +++ b/masque/shapes/polygon.py @@ -321,7 +321,7 @@ class Polygon(Shape): else: raise PatternError('Two of ymin, yctr, ymax, ly must be None!') - poly = Polygon.rectangle(lx, ly, offset=(xctr, yctr), repetition=repetition) + poly = Polygon.rectangle(abs(lx), abs(ly), offset=(xctr, yctr), repetition=repetition) return poly @staticmethod