ComfyUI  >  Nodes  >  ComfyUI_Mira >  Circles Generator

ComfyUI Node: Circles Generator

Class Name

CirclesGenerator

Category
Mira/Util
Author
mirabarukaso (Account age: 1261 days)
Extension
ComfyUI_Mira
Latest Updated
7/25/2024
Github Stars
0.0K

How to Install ComfyUI_Mira

Install this extension via the ComfyUI Manager by searching for  ComfyUI_Mira
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_Mira 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

Circles Generator Description

Generate customizable circle patterns for artistic designs with varying sizes, positions, and overlap options, including "dount" circles.

Circles Generator:

The CirclesGenerator node is designed to create a list of circles with varying diameters and positions within a specified area. This node is particularly useful for generating random circle patterns, which can be used in various artistic and design applications. The primary function of this node is to generate circles based on user-defined parameters such as the number of circles, their minimum and maximum diameters, and whether they should overlap. Additionally, it can create "dount" circles, which are circles with a hollow center. This node is ideal for artists looking to add random circular patterns to their designs, providing a high degree of customization and control over the generated circles.

Circles Generator Input Parameters:

X

This parameter specifies the starting X-coordinate (horizontal position) for generating circles. It determines the top-left position of the first circle. If the value exceeds the specified width, it will reset to 0. This helps in positioning the circles within the defined area.

Y

This parameter specifies the starting Y-coordinate (vertical position) for generating circles. It determines the top-left position of the first circle. If the value exceeds the specified height, it will reset to 0. This helps in positioning the circles within the defined area.

Width

This parameter defines the width of the area within which the circles will be generated. It ensures that all circles are positioned within this horizontal boundary.

Height

This parameter defines the height of the area within which the circles will be generated. It ensures that all circles are positioned within this vertical boundary.

counts

This parameter specifies the number of circles to be generated. It controls how many circles will be created within the defined area.

diameter_min

This parameter sets the minimum diameter for the generated circles. It ensures that no circle will have a diameter smaller than this value.

diameter_max

This parameter sets the maximum diameter for the generated circles. It ensures that no circle will have a diameter larger than this value.

dount

This boolean parameter enables or disables the creation of "dount" circles, which are circles with a hollow center. When enabled, the circles will have an inner circle cut out.

dount_size

This parameter controls the size of the inner circle for "dount" circles. It is a percentage of the outer circle's diameter, determining how large the hollow center will be.

overlap

This boolean parameter allows or disallows the circles to overlap. When enabled, circles can be positioned such that they intersect with each other.

overlap_retry

This parameter specifies the number of attempts to reposition a circle if it overlaps with another circle when overlap is not allowed. It helps in managing the placement of circles to avoid overlaps.

rnd_seed

This parameter sets the seed for the random number generator. It ensures reproducibility of the generated circle patterns by using the same seed value.

Circles Generator Output Parameters:

circles_provider

This output provides a list of generated circles, each defined by its top-left position, diameter, and "dount" properties. This list can be used as input for other nodes that require circle data.

Width

This output returns the width of the area within which the circles were generated. It is useful for downstream nodes that need to know the dimensions of the generated pattern.

Height

This output returns the height of the area within which the circles were generated. It is useful for downstream nodes that need to know the dimensions of the generated pattern.

Circles Generator Usage Tips:

  • To create a uniform pattern of circles, set diameter_min and diameter_max to the same value.
  • Use the rnd_seed parameter to generate reproducible patterns. This is useful if you want to recreate the same pattern multiple times.
  • Enable the dount parameter to add variety to your circle patterns by creating circles with hollow centers.
  • Adjust the overlap_retry parameter to control how strictly the node avoids overlapping circles when overlap is disabled.

Circles Generator Common Errors and Solutions:

Mira:Connect at least ONE opt node

  • Explanation: This error occurs when neither circles_provider nor opt_circle is connected to the CreateCircleMask node.
  • Solution: Ensure that at least one of the circles_provider or opt_circle outputs is connected to the CreateCircleMask node to provide the necessary circle data.

Diameter minimum is greater than diameter maximum

  • Explanation: This error occurs when the diameter_min parameter is set to a value greater than diameter_max.
  • Solution: Ensure that diameter_min is less than or equal to diameter_max to avoid this error.

Circles Generator Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_Mira
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.