From d04e42671855e870b3485737e62c447b7652a2aa Mon Sep 17 00:00:00 2001 From: Patrick Morgan Date: Sun, 15 Dec 2024 21:49:16 -0800 Subject: [PATCH] stake --- nodes/nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/nodes.py b/nodes/nodes.py index 1954e1d..2966982 100644 --- a/nodes/nodes.py +++ b/nodes/nodes.py @@ -363,12 +363,12 @@ class MaskContourProcessor: pos = element['position'] radius = element['properties']['radius'] - # Draw circle using Pillow + # Draw filled circle using Pillow bbox = [ (pos['x'] - radius, pos['y'] - radius), (pos['x'] + radius, pos['y'] + radius) ] - draw.ellipse(bbox, outline=self.element_color, width=1) + draw.ellipse(bbox, fill=self.element_color) # Fill the circle with white # Convert the canvas to a numpy array and combine with the mask canvas_np = np.array(canvas)