Visit ComfyUI Online for ready-to-use ComfyUI environment
Draw smooth rounded rectangles within containers for visually appealing graphics with customizable features and advanced configurations.
The ImageDrawRectangleRoundedByContainer
node is designed to draw a rounded rectangle within a specified container. This node is particularly useful for creating visually appealing graphics with smooth, rounded corners, which can enhance the aesthetic quality of your images. By leveraging this node, you can easily define the position, size, and curvature of the rectangle, as well as customize its outline and fill colors. The node also allows for advanced configurations such as anti-aliasing and corner-specific rounding, providing you with a high degree of control over the final output. This makes it an excellent tool for AI artists looking to add sophisticated shapes to their digital artwork.
The container parameter specifies the image or canvas within which the rounded rectangle will be drawn. It is essential as it defines the boundaries and context for the drawing operation. The container should be a multi-dimensional array representing the image data.
This parameter sets the x-coordinate for the starting point of the rectangle. It determines the horizontal position of the top-left corner of the rectangle. The value should be within the width of the container.
This parameter sets the y-coordinate for the starting point of the rectangle. It determines the vertical position of the top-left corner of the rectangle. The value should be within the height of the container.
This parameter sets the x-coordinate for the ending point of the rectangle. It determines the horizontal position of the bottom-right corner of the rectangle. The value should be within the width of the container.
This parameter sets the y-coordinate for the ending point of the rectangle. It determines the vertical position of the bottom-right corner of the rectangle. The value should be within the height of the container.
The radius parameter defines the curvature of the rectangle's corners. A larger radius results in more rounded corners, while a smaller radius results in sharper corners. The value should be a positive number.
This parameter specifies the thickness of the rectangle's outline. A larger value results in a thicker outline, while a smaller value results in a thinner outline. The value should be a positive number.
This parameter sets the red component of the outline color. The value should be between 0 and 255.
This parameter sets the green component of the outline color. The value should be between 0 and 255.
This parameter sets the blue component of the outline color. The value should be between 0 and 255.
This parameter sets the alpha (transparency) component of the outline color. The value should be between 0 and 255, where 0 is fully transparent and 255 is fully opaque.
This parameter sets the red component of the fill color. The value should be between 0 and 255.
This parameter sets the green component of the fill color. The value should be between 0 and 255.
This parameter sets the blue component of the fill color. The value should be between 0 and 255.
This parameter sets the alpha (transparency) component of the fill color. The value should be between 0 and 255, where 0 is fully transparent and 255 is fully opaque.
This boolean parameter determines whether the top-left corner of the rectangle should be rounded. Set to True
to round the corner, or False
to keep it sharp.
This boolean parameter determines whether the top-right corner of the rectangle should be rounded. Set to True
to round the corner, or False
to keep it sharp.
This boolean parameter determines whether the bottom-right corner of the rectangle should be rounded. Set to True
to round the corner, or False
to keep it sharp.
This boolean parameter determines whether the bottom-left corner of the rectangle should be rounded. Set to True
to round the corner, or False
to keep it sharp.
This parameter enables or disables Super-Sample Anti-Aliasing (SSAA) for the rectangle. SSAA can improve the visual quality of the rectangle by reducing aliasing effects. Set to True
to enable SSAA, or False
to disable it.
This parameter specifies the drawing method to be used. Different methods may offer various optimizations or visual effects. The exact options available for this parameter depend on the implementation details.
The output is an image with the newly drawn rounded rectangle. This image retains the original content of the container but includes the added rectangle, allowing you to seamlessly integrate the shape into your existing artwork.
True
or False
.None
.© Copyright 2024 RunComfy. All Rights Reserved.