Visit ComfyUI Online for ready-to-use ComfyUI environment
Draw smooth rounded rectangles on image canvas with customizable dimensions, colors, and anti-aliasing for visual appeal.
The ImageDrawRectangleRounded
node is designed to draw a rounded rectangle on an image canvas. This node is particularly useful for creating smooth, aesthetically pleasing shapes with rounded corners, which can be used in various design and artistic applications. By allowing you to specify the dimensions, corner radii, and colors for both the outline and fill, this node provides a high degree of customization. Additionally, it supports anti-aliasing to ensure that the edges of the shapes are smooth and visually appealing. This node is ideal for adding graphical elements to images, such as buttons, frames, or decorative shapes, enhancing the overall visual quality of your artwork.
This parameter represents the image canvas on which the rounded rectangle will be drawn. It is typically a tensor that defines the dimensions and color channels of the image. The container's shape determines the size of the canvas.
The x-coordinate of the starting point (top-left corner) of the rectangle. This value determines the horizontal position of the rectangle on the canvas. Minimum value is 0, and the maximum value is the width of the canvas.
The y-coordinate of the starting point (top-left corner) of the rectangle. This value determines the vertical position of the rectangle on the canvas. Minimum value is 0, and the maximum value is the height of the canvas.
The x-coordinate of the ending point (bottom-right corner) of the rectangle. This value determines the horizontal extent of the rectangle. Minimum value is 0, and the maximum value is the width of the canvas.
The y-coordinate of the ending point (bottom-right corner) of the rectangle. This value determines the vertical extent of the rectangle. Minimum value is 0, and the maximum value is the height of the canvas.
The radius of the rounded corners. This value determines how rounded the corners of the rectangle will be. Minimum value is 0 (no rounding), and the maximum value is half the smaller dimension of the rectangle.
The thickness of the rectangle's outline. This value determines how thick the border of the rectangle will be. Minimum value is 0 (no outline), and there is no strict maximum value, but it should be reasonable relative to the rectangle's size.
The red component of the outline color. This value ranges from 0 to 255, where 0 is no red and 255 is full red.
The green component of the outline color. This value ranges from 0 to 255, where 0 is no green and 255 is full green.
The blue component of the outline color. This value ranges from 0 to 255, where 0 is no blue and 255 is full blue.
The alpha (transparency) component of the outline color. This value ranges from 0 to 1, where 0 is fully transparent and 1 is fully opaque.
The red component of the fill color. This value ranges from 0 to 255, where 0 is no red and 255 is full red.
The green component of the fill color. This value ranges from 0 to 255, where 0 is no green and 255 is full green.
The blue component of the fill color. This value ranges from 0 to 255, where 0 is no blue and 255 is full blue.
The alpha (transparency) component of the fill color. This value ranges from 0 to 1, where 0 is fully transparent and 1 is fully opaque.
A boolean value that determines whether the top-left corner of the rectangle is rounded. If true, the corner is rounded; if false, it is square.
A boolean value that determines whether the top-right corner of the rectangle is rounded. If true, the corner is rounded; if false, it is square.
A boolean value that determines whether the bottom-right corner of the rectangle is rounded. If true, the corner is rounded; if false, it is square.
A boolean value that determines whether the bottom-left corner of the rectangle is rounded. If true, the corner is rounded; if false, it is square.
Supersample Anti-Aliasing factor. This value determines the level of anti-aliasing applied to the rectangle to smooth out the edges. Higher values result in smoother edges but require more processing power.
The resampling method used when resizing the image. This parameter determines the quality of the resizing operation. Common methods include "nearest", "bilinear", and "bicubic".
The output is an image tensor with the drawn rounded rectangle. This tensor can be used in subsequent nodes for further image processing or rendering. The output image retains the dimensions and color channels of the input container, with the added graphical element.
radius
parameter to a value that rounds the corners significantly, and use a contrasting outline and fill color.fill_alpha
parameter.SSAA
parameter to find a balance between smooth edges and processing time, especially for high-resolution images.start_x
, start_y
, end_x
, and end_y
parameters are within the dimensions of the container.outline_red
, outline_green
, outline_blue
, outline_alpha
, fill_red
, fill_green
, fill_blue
, and fill_alpha
parameters are within their respective ranges.top_left_corner
, top_right_corner
, bottom_right_corner
, and bottom_left_corner
are set to either true
or false
.SSAA
parameter is a positive integer that represents the level of anti-aliasing.© Copyright 2024 RunComfy. All Rights Reserved.