From aa2b22b3f4fd2c2e0f81be39e8b5077ab18126c2 Mon Sep 17 00:00:00 2001 From: Patrick Morgan Date: Sun, 15 Dec 2024 22:53:04 -0800 Subject: [PATCH] WIP --- nodes/nodes.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/nodes/nodes.py b/nodes/nodes.py index 1f17bc1..665eac8 100644 --- a/nodes/nodes.py +++ b/nodes/nodes.py @@ -348,17 +348,17 @@ class MaskContourProcessor: joint='curve' ) - if 'decorativeElements' in effect_data: - for element in effect_data['decorativeElements']: - if element['type'] == 'circle': - pos = element['position'] - radius = element['properties']['radius'] + # if 'decorativeElements' in effect_data: + # for element in effect_data['decorativeElements']: + # if element['type'] == 'circle': + # pos = element['position'] + # radius = element['properties']['radius'] - bbox = [ - (pos['x'] - radius, pos['y'] - radius), - (pos['x'] + radius, pos['y'] + radius) - ] - draw.ellipse(bbox, fill=self.element_color) + # bbox = [ + # (pos['x'] - radius, pos['y'] - radius), + # (pos['x'] + radius, pos['y'] + radius) + # ] + # draw.ellipse(bbox, fill=self.element_color) canvas_np = np.array(canvas) combined_mask = np.clip(mask_array + canvas_np, 0, 1)