ComfyUI  >  Nodes  >  Allor Plugin >  ImageDrawEllipseByContainer

ComfyUI Node: ImageDrawEllipseByContainer

Class Name

ImageDrawEllipseByContainer

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

ImageDrawEllipseByContainer Description

Facilitates precise ellipse drawing within containers for AI artists, simplifying position, size, and color definition.

ImageDrawEllipseByContainer:

The ImageDrawEllipseByContainer node is designed to facilitate the drawing of ellipses within a specified container. This node is particularly useful for AI artists who want to add elliptical shapes to their images with precision and ease. By leveraging this node, you can define the position, size, and color properties of the ellipse, ensuring that it fits perfectly within the given container. The node simplifies the process of drawing ellipses by handling the underlying calculations and rendering, allowing you to focus on the creative aspects of your work. Whether you are creating complex designs or simple illustrations, this node provides a robust and user-friendly solution for adding ellipses to your images.

ImageDrawEllipseByContainer Input Parameters:

container

The container parameter specifies the image or canvas within which the ellipse will be drawn. It is a multi-dimensional array representing the image data. The dimensions of the container determine the boundaries within which the ellipse can be placed. This parameter is crucial as it sets the context for the drawing operation.

start_x

The start_x parameter defines the x-coordinate of the starting point of the ellipse. This value determines the horizontal position of the ellipse's top-left corner. The minimum value is 0, and the maximum value is the width of the container. Adjusting this parameter allows you to position the ellipse precisely within the container.

start_y

The start_y parameter defines the y-coordinate of the starting point of the ellipse. This value determines the vertical position of the ellipse's top-left corner. The minimum value is 0, and the maximum value is the height of the container. This parameter helps in setting the vertical placement of the ellipse.

end_x

The end_x parameter specifies the x-coordinate of the ending point of the ellipse. This value, along with start_x, determines the width of the ellipse. The minimum value is 0, and the maximum value is the width of the container. Adjusting this parameter changes the horizontal size of the ellipse.

end_y

The end_y parameter specifies the y-coordinate of the ending point of the ellipse. This value, along with start_y, determines the height of the ellipse. The minimum value is 0, and the maximum value is the height of the container. This parameter affects the vertical size of the ellipse.

outline_size

The outline_size parameter defines the thickness of the ellipse's outline. The minimum value is 0 (no outline), and there is no strict maximum value, but it should be reasonable relative to the ellipse's size. This parameter allows you to add a border to the ellipse, enhancing its visibility and style.

outline_red

The outline_red parameter sets the red component of the outline color. The value ranges from 0 to 255, where 0 is no red and 255 is full red. This parameter, along with outline_green and outline_blue, defines the color of the ellipse's outline.

outline_green

The outline_green parameter sets the green component of the outline color. The value ranges from 0 to 255, where 0 is no green and 255 is full green. This parameter works with outline_red and outline_blue to determine the outline color.

outline_blue

The outline_blue parameter sets the blue component of the outline color. The value ranges from 0 to 255, where 0 is no blue and 255 is full blue. This parameter, in combination with outline_red and outline_green, specifies the outline color.

outline_alpha

The outline_alpha parameter controls the transparency of the outline. The value ranges from 0 (completely transparent) to 255 (completely opaque). This parameter allows you to adjust the visibility of the ellipse's outline.

fill_red

The fill_red parameter sets the red component of the fill color. The value ranges from 0 to 255, where 0 is no red and 255 is full red. This parameter, along with fill_green and fill_blue, defines the color of the ellipse's interior.

fill_green

The fill_green parameter sets the green component of the fill color. The value ranges from 0 to 255, where 0 is no green and 255 is full green. This parameter works with fill_red and fill_blue to determine the fill color.

fill_blue

The fill_blue parameter sets the blue component of the fill color. The value ranges from 0 to 255, where 0 is no blue and 255 is full blue. This parameter, in combination with fill_red and fill_green, specifies the fill color.

fill_alpha

The fill_alpha parameter controls the transparency of the fill. The value ranges from 0 (completely transparent) to 255 (completely opaque). This parameter allows you to adjust the visibility of the ellipse's interior.

SSAA

The SSAA parameter stands for Supersample Anti-Aliasing. It is a technique used to reduce aliasing (jagged edges) in the rendered ellipse. The value is typically a boolean (True or False). Enabling SSAA can improve the visual quality of the ellipse at the cost of additional computational resources.

method

The method parameter specifies the drawing method to be used. This can include different algorithms or techniques for rendering the ellipse. The exact options may vary, but this parameter allows you to choose the most suitable method for your specific needs.

ImageDrawEllipseByContainer Output Parameters:

IMAGE

The IMAGE output parameter represents the resulting image with the drawn ellipse. This output is a modified version of the input container, now containing the newly added ellipse. The output image can be used for further processing, display, or saving to a file. It is the primary result of the node's operation, reflecting all the specified input parameters.

ImageDrawEllipseByContainer Usage Tips:

  • Ensure that the start_x, start_y, end_x, and end_y parameters are within the bounds of the container to avoid errors.
  • Use the outline_size parameter to add a distinct border to the ellipse, making it stand out against the background.
  • Experiment with different fill_alpha and outline_alpha values to achieve various transparency effects for creative designs.
  • Enable SSAA if you notice jagged edges on the ellipse, as it can significantly improve the visual quality.

ImageDrawEllipseByContainer Common Errors and Solutions:

"IndexError: index out of bounds"

  • Explanation: This error occurs when the specified coordinates are outside the dimensions of the container.
  • Solution: Ensure that start_x, start_y, end_x, and end_y are within the valid range of the container's width and height.

"ValueError: invalid color value"

  • Explanation: This error happens when the color component values are not within the 0-255 range.
  • Solution: Check that all color parameters (outline_red, outline_green, outline_blue, fill_red, fill_green, fill_blue) are set between 0 and 255.

"TypeError: SSAA must be a boolean"

  • Explanation: This error occurs if the SSAA parameter is not set to a boolean value.
  • Solution: Ensure that the SSAA parameter is either True or False.

"AttributeError: method not recognized"

  • Explanation: This error happens when an invalid drawing method is specified.
  • Solution: Verify that the method parameter is set to a valid option supported by the node.

ImageDrawEllipseByContainer 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.