ComfyUI  >  Nodes  >  Allor Plugin >  ImageDrawPiesliceByContainer

ComfyUI Node: ImageDrawPiesliceByContainer

Class Name

ImageDrawPiesliceByContainer

Category
image/draw
Author
Nourepide (Account age: 2900 days)
Extension
Allor Plugin
Latest Updated
5/22/2024
Github Stars
0.2K

How to Install Allor Plugin

Install this extension via the ComfyUI Manager by searching for  Allor Plugin
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Allor Plugin in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ImageDrawPiesliceByContainer Description

Draw pie slice shape on image in container with customizable angles, colors, and appearance.

ImageDrawPiesliceByContainer:

The ImageDrawPiesliceByContainer node is designed to draw a pie slice shape on an image within a specified container. This node is particularly useful for creating visual elements that require a pie slice, such as charts, graphs, or decorative graphics. By leveraging this node, you can easily define the start and end angles, as well as the position and size of the pie slice. Additionally, you can customize the appearance with various outline and fill colors, making it a versatile tool for AI artists looking to enhance their images with precise and customizable shapes.

ImageDrawPiesliceByContainer Input Parameters:

container

The container parameter represents the image data on which the pie slice will be drawn. It is typically a multidimensional array that holds the pixel information of the image. This parameter is crucial as it defines the canvas for the pie slice.

start_x

The start_x parameter specifies the x-coordinate of the starting point of the pie slice. This determines the horizontal position where the pie slice begins.

start_y

The start_y parameter specifies the y-coordinate of the starting point of the pie slice. This determines the vertical position where the pie slice begins.

end_x

The end_x parameter specifies the x-coordinate of the ending point of the pie slice. This determines the horizontal position where the pie slice ends.

end_y

The end_y parameter specifies the y-coordinate of the ending point of the pie slice. This determines the vertical position where the pie slice ends.

start

The start parameter defines the starting angle of the pie slice in degrees. This angle is measured from the x-axis and determines where the pie slice begins.

end

The end parameter defines the ending angle of the pie slice in degrees. This angle is measured from the x-axis and determines where the pie slice ends.

outline_size

The outline_size parameter specifies the thickness of the outline of the pie slice. A larger value results in a thicker outline.

outline_red

The outline_red parameter sets the red component of the outline color. It ranges from 0 to 255.

outline_green

The outline_green parameter sets the green component of the outline color. It ranges from 0 to 255.

outline_blue

The outline_blue parameter sets the blue component of the outline color. It ranges from 0 to 255.

outline_alpha

The outline_alpha parameter sets the alpha (transparency) component of the outline color. It ranges from 0 (completely transparent) to 255 (completely opaque).

fill_red

The fill_red parameter sets the red component of the fill color. It ranges from 0 to 255.

fill_green

The fill_green parameter sets the green component of the fill color. It ranges from 0 to 255.

fill_blue

The fill_blue parameter sets the blue component of the fill color. It ranges from 0 to 255.

fill_alpha

The fill_alpha parameter sets the alpha (transparency) component of the fill color. It ranges from 0 (completely transparent) to 255 (completely opaque).

SSAA

The SSAA parameter stands for Supersample Anti-Aliasing. It is a method used to reduce aliasing (jagged edges) in the pie slice. Enabling SSAA can result in smoother edges.

method

The method parameter specifies the drawing method to be used. Different methods may offer various optimizations or visual effects.

ImageDrawPiesliceByContainer Output Parameters:

IMAGE

The IMAGE output parameter represents the resulting image with the drawn pie slice. This output is crucial as it provides the final visual result that incorporates the pie slice into the original image.

ImageDrawPiesliceByContainer Usage Tips:

  • To achieve a smooth and visually appealing pie slice, consider enabling the SSAA parameter to reduce jagged edges.
  • Experiment with different start and end angles to create various pie slice shapes, such as semi-circles or quarter-circles.
  • Use contrasting colors for the outline and fill parameters to make the pie slice stand out against the background image.

ImageDrawPiesliceByContainer Common Errors and Solutions:

"Invalid container format"

  • Explanation: The container parameter does not have the expected format or dimensions.
  • Solution: Ensure that the container is a valid image array with the correct dimensions and data type.

"Invalid color value"

  • Explanation: One of the color parameters (outline_red, outline_green, outline_blue, outline_alpha, fill_red, fill_green, fill_blue, fill_alpha) is out of the acceptable range (0-255).
  • Solution: Verify that all color values are within the 0-255 range.

"Invalid angle value"

  • Explanation: The start or end angle is not within the valid range.
  • Solution: Ensure that the start and end angles are specified in degrees and are within the range of 0 to 360.

"Invalid coordinate value"

  • Explanation: One of the coordinate parameters (start_x, start_y, end_x, end_y) is out of the image bounds.
  • Solution: Check that all coordinate values are within the dimensions of the image specified by the container.

ImageDrawPiesliceByContainer Related Nodes

Go back to the extension to check out more related nodes.
Allor Plugin
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.