Visit ComfyUI Online for ready-to-use ComfyUI environment
Draw pie slice shapes on image canvas with customizable angles, colors, and SSAA support for smooth edges.
The ImageDrawPieslice
node is designed to draw a pie slice shape on an image canvas. This node is particularly useful for creating visual elements that require a segment of a circle, such as charts, icons, or decorative graphics. By specifying the start and end angles, you can control the portion of the circle that is drawn. The node also allows you to customize the appearance of the pie slice with options for outline and fill colors, as well as transparency levels. Additionally, the node supports Super-Sampling Anti-Aliasing (SSAA) to enhance the quality of the rendered shape, ensuring smooth edges and a professional finish.
This parameter represents the image container that provides the dimensions for the canvas. It is used to determine the width and height of the image on which the pie slice will be drawn.
The x-coordinate of the starting point of the pie slice. This value is relative to the width of the canvas. It determines where the pie slice begins horizontally.
The y-coordinate of the starting point of the pie slice. This value is relative to the height of the canvas. It determines where the pie slice begins vertically.
The x-coordinate of the ending point of the pie slice. This value is relative to the width of the canvas. It determines where the pie slice ends horizontally.
The y-coordinate of the ending point of the pie slice. This value is relative to the height of the canvas. It determines where the pie slice ends vertically.
The starting angle of the pie slice in degrees. This angle is measured from the x-axis and determines the beginning of the arc.
The ending angle of the pie slice in degrees. This angle is measured from the x-axis and determines the end of the arc.
The thickness of the outline of the pie slice. This value determines how thick the border of the pie slice will be.
The red component of the outline color. This value ranges from 0 to 255 and determines the red intensity of the outline.
The green component of the outline color. This value ranges from 0 to 255 and determines the green intensity of the outline.
The blue component of the outline color. This value ranges from 0 to 255 and determines the blue intensity of the outline.
The alpha (transparency) component of the outline color. This value ranges from 0.0 to 1.0 and determines the transparency level of the outline.
The red component of the fill color. This value ranges from 0 to 255 and determines the red intensity of the fill.
The green component of the fill color. This value ranges from 0 to 255 and determines the green intensity of the fill.
The blue component of the fill color. This value ranges from 0 to 255 and determines the blue intensity of the fill.
The alpha (transparency) component of the fill color. This value ranges from 0.0 to 1.0 and determines the transparency level of the fill.
Super-Sampling Anti-Aliasing factor. This value determines the level of anti-aliasing applied to the pie slice to smooth out the edges. Higher values result in better quality but may increase processing time.
The resampling method used when resizing the canvas back to its original dimensions. This parameter determines the quality of the final image after SSAA is applied.
The output is an image tensor containing the drawn pie slice. This tensor can be used in further image processing nodes or directly rendered as part of the final image. The pie slice will have the specified outline and fill colors, transparency levels, and will be anti-aliased according to the SSAA setting.
© Copyright 2024 RunComfy. All Rights Reserved.