Visit ComfyUI Online for ready-to-use ComfyUI environment
Versatile geometric shape creation and manipulation tool for image processing, offering customization options and visual effects.
The LightShapeNode is a versatile tool designed for creating and manipulating geometric shapes within an image processing workflow. It allows you to draw various shapes such as circles, stars, crosses, and more, directly onto an image or a blank canvas. This node is particularly useful for artists and designers who want to add custom shapes to their compositions, offering a range of customization options including size, position, rotation, and color. The node can work with a base image or generate a new one, providing flexibility in how shapes are integrated into your projects. By adjusting parameters like opacity and blur, you can achieve different visual effects, making this node a powerful addition to any image processing toolkit.
The wide
parameter specifies the width of the canvas or the base image where the shape will be drawn. It determines the horizontal dimension of the output image. The value should be a positive integer, with no specific minimum or maximum provided, but it should be within the limits of your system's memory capacity.
The height
parameter defines the vertical dimension of the canvas or base image. Similar to wide
, it should be a positive integer, ensuring the image fits within your system's capabilities. This parameter, along with wide
, sets the overall size of the output image.
The shape
parameter determines the type of geometric shape to be drawn. Options include circle
, semicircle
, quarter_circle
, ellipse
, square
, triangle
, cross
, star
, and radial
. Each shape has unique characteristics and can be used to create different visual effects.
The X_offset
parameter adjusts the horizontal position of the shape on the canvas. It allows you to move the shape left or right from the center, with positive values shifting it to the right and negative values to the left. This parameter is crucial for precise placement of shapes.
The Y_offset
parameter controls the vertical position of the shape on the canvas. Positive values move the shape downward, while negative values move it upward. This parameter, in conjunction with X_offset
, provides full control over the shape's placement.
The scale
parameter affects the size of the shape relative to its default dimensions. A value of 1.0 means the shape is drawn at its original size, while values greater than 1.0 enlarge the shape and values less than 1.0 reduce its size. This parameter is useful for resizing shapes without altering the canvas size.
The rotation
parameter specifies the angle in degrees to rotate the shape. It allows for creative orientation of shapes, with 0 degrees representing no rotation. Positive values rotate the shape clockwise, while negative values rotate it counterclockwise.
The opacity
parameter controls the transparency level of the shape, with a range from 0.0 (completely transparent) to 1.0 (completely opaque). This parameter is essential for blending shapes with the background or other elements in the image.
The blur_radius
parameter applies a Gaussian blur to the shape, softening its edges. A value of 0 means no blur, while higher values increase the blur effect. This parameter is useful for creating softer, more diffused shapes.
The background_color
parameter sets the color of the canvas or the area surrounding the shape. It is specified in hexadecimal format (e.g., #FFFFFF
for white). This parameter is important for ensuring the shape stands out against the desired background.
The shape_color
parameter defines the fill color of the shape, also specified in hexadecimal format. This parameter is crucial for achieving the desired visual impact and contrast with the background.
The base_image
parameter allows you to provide an existing image onto which the shape will be drawn. If not provided, a new image is created based on the wide
and height
parameters. This parameter offers flexibility in integrating shapes into existing compositions.
The image
output parameter is the final image generated by the node, containing the drawn shape(s) with all specified customizations. This output is crucial as it represents the visual result of all input parameters and can be used in further processing or as a final artwork.
shape
options to create unique designs and patterns.opacity
and blur_radius
to blend shapes seamlessly into your compositions, creating depth and texture.X_offset
and Y_offset
to layer multiple shapes creatively within the same image.shape
parameter.shape
parameter is set to one of the supported types: circle
, semicircle
, quarter_circle
, ellipse
, square
, triangle
, cross
, star
, or radial
.wide
and height
parameters exceed the system's memory capacity.wide
and height
to fit within your system's memory limits.background_color
or shape_color
is not in the correct hexadecimal format.#RRGGBB
.© Copyright 2024 RunComfy. All Rights Reserved.
RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.