Visit ComfyUI Online for ready-to-use ComfyUI environment
Shape Generation node creates customizable images of circles, squares, rectangles, ellipses, and polygons with adjustable size, color, position, rotation, and edge blur.
The Shape Generation node creates images representing various shapes such as circles, squares, rectangles, ellipses, and polygons. These shapes can be customized by adjusting parameters such as size, color, position, rotation angle, and edge blur. The node provides options to specify the shape type, the number of sides for polygons, the RGBA color value for the main shape, and the RGBA color value for the background. Additionally, you can control the width and height of the output images, the position offset, and the amount of edge blur applied to the shapes.
Specifies the type of shape to generate. Options include various shapes such as circles, squares, rectangles, ellipses, and polygons. The default shape is a circle.
Defines the number of sides for polygon shapes. This parameter is only applicable when the shape type is set to a polygon. The minimum value is 3, the maximum is 100, and the default is 3.
Sets the RGBA color value for the main shape. This parameter allows you to define the color and transparency of the shape. The default value is (255, 255, 255, 255), representing a fully opaque white color.
Sets the RGBA color value for the background. This parameter allows you to define the color and transparency of the background. The default value is (0, 0, 0, 255), representing a fully opaque black color.
Specifies the width and height of the output image. The default value is (256, 256), and the minimum value is defined by the constant MIN_IMAGE_SIZE
.
Defines the position offset of the shape within the image. The default value is (0, 0), with a step of 0.01 and a precision of 4 decimal places.
Sets the rotation angle of the shape. The value ranges from -180 to 180 degrees, with a default of 0 degrees. The step is 0.01, and the precision is 4 decimal places.
Specifies the size of the shape as a vector. The default value is (1.0, 1.0), with a step of 0.01 and a precision of 4 decimal places.
Controls the amount of edge blur applied to the shape. This parameter helps in creating soft edges for the shape.
The generated image containing the specified shape with the applied customizations. This output is an image tensor that can be used in further image processing or directly as a visual element.
RGBA_A
and MATTE
parameters to create shapes with varying levels of transparency and background colors.SIZE
and ANGLE
parameters to fit the shape perfectly within your design context.EDGE
parameter to create soft-edged shapes for a more blended appearance.SIDES
parameter to a value between 3 and 100.RGBA_A
and MATTE
parameters are tuples of four integers, each ranging from 0 to 255.WH
parameter values to meet or exceed the MIN_IMAGE_SIZE
constant.© Copyright 2024 RunComfy. All Rights Reserved.