Visit ComfyUI Online for ready-to-use ComfyUI environment
Create and draw customizable regular polygons on image canvas with precise control over attributes for AI artists.
The ImageDrawPolygon
node is designed to create and draw regular polygons on an image canvas. This node allows you to specify various attributes of the polygon, such as the number of sides, rotation, outline, and fill colors, as well as the size and anti-aliasing settings. By leveraging this node, you can generate complex geometric shapes with precise control over their appearance, making it a powerful tool for AI artists looking to incorporate polygonal designs into their artwork. The node's primary function is to facilitate the creation of visually appealing and customizable polygons, which can be seamlessly integrated into larger compositions or used as standalone elements.
This parameter defines the size of the canvas and the polygon. It determines the width and height of the canvas in pixels. The larger the size, the bigger the polygon will be. There is no strict minimum or maximum value, but typical values range from 100 to 1000 pixels.
This parameter specifies the number of sides of the polygon. For example, a value of 3 will create a triangle, while a value of 6 will create a hexagon. The minimum value is 3, and there is no strict maximum value, but practical values usually range from 3 to 12.
This parameter sets the rotation angle of the polygon in degrees. It allows you to rotate the polygon around its center. The value can range from 0 to 360 degrees, with 0 being the default value, meaning no rotation.
This parameter determines the thickness of the polygon's outline. A larger value will result in a thicker outline. The value is typically a positive integer, with common values ranging from 1 to 10 pixels.
This parameter sets the red component of the outline color. The value ranges from 0 to 255, with 0 being no red and 255 being full red.
This parameter sets the green component of the outline color. The value ranges from 0 to 255, with 0 being no green and 255 being full green.
This parameter sets the blue component of the outline color. The value ranges from 0 to 255, with 0 being no blue and 255 being full blue.
This parameter sets the transparency of the outline. The value ranges from 0 to 1, with 0 being fully transparent and 1 being fully opaque.
This parameter sets the red component of the fill color. The value ranges from 0 to 255, with 0 being no red and 255 being full red.
This parameter sets the green component of the fill color. The value ranges from 0 to 255, with 0 being no green and 255 being full green.
This parameter sets the blue component of the fill color. The value ranges from 0 to 255, with 0 being no blue and 255 being full blue.
This parameter sets the transparency of the fill. The value ranges from 0 to 1, with 0 being fully transparent and 1 being fully opaque.
This parameter stands for Supersample Anti-Aliasing. It determines the level of anti-aliasing applied to the polygon to smooth out the edges. A higher value results in smoother edges but requires more processing power. Common values range from 1 to 4.
This parameter specifies the resampling method used when resizing the canvas back to its original size after applying SSAA. Common methods include "nearest", "bilinear", and "bicubic". The choice of method affects the quality and smoothness of the final image.
The output is an image tensor containing the drawn polygon. This tensor can be used in further image processing nodes or directly rendered as part of your artwork. The image will have the same dimensions as specified by the size
parameter and will include the polygon with the specified attributes.
© Copyright 2024 RunComfy. All Rights Reserved.