mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-10 05:15:05 +08:00
Update curve_nodes.py
This commit is contained in:
parent
402124d5c4
commit
9215c919b1
@ -371,7 +371,7 @@ Locations are center locations.
|
|||||||
}
|
}
|
||||||
|
|
||||||
def createshapemask(self, coordinates, frame_width, frame_height, shape_width, shape_height, shape_color,
|
def createshapemask(self, coordinates, frame_width, frame_height, shape_width, shape_height, shape_color,
|
||||||
bg_color, blur_radius, shape, intensity, size_multiplier=[1.0], accumulate=False, trailing=1.0, border_width=0, border_color='black'):
|
bg_color, blur_radius, shape, intensity, size_multiplier=[1.0], trailing=1.0, border_width=0, border_color='black'):
|
||||||
# Define the number of images in the batch
|
# Define the number of images in the batch
|
||||||
if len(coordinates) < 10:
|
if len(coordinates) < 10:
|
||||||
coords_list = []
|
coords_list = []
|
||||||
@ -398,8 +398,8 @@ Locations are center locations.
|
|||||||
draw = ImageDraw.Draw(image)
|
draw = ImageDraw.Draw(image)
|
||||||
|
|
||||||
# Calculate the size for this frame and ensure it's not less than 0
|
# Calculate the size for this frame and ensure it's not less than 0
|
||||||
current_width = max(0, shape_width + i * size_multiplier[i])
|
current_width = shape_width * size_multiplier[i]
|
||||||
current_height = max(0, shape_height + i * size_multiplier[i])
|
current_height = shape_height * size_multiplier[i]
|
||||||
|
|
||||||
for coords in coords_list:
|
for coords in coords_list:
|
||||||
location_x = coords[i]['x']
|
location_x = coords[i]['x']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user