ComfyUI > Nodes > ComfyUI-Image-Effects > 📐 Voronoi

ComfyUI Node: 📐 Voronoi

Class Name

VoronoiNode

Category
Image Effects
Author
orion4d (Account age: 929days)
Extension
ComfyUI-Image-Effects
Latest Updated
2025-05-28
Github Stars
0.02K

How to Install ComfyUI-Image-Effects

Install this extension via the ComfyUI Manager by searching for ComfyUI-Image-Effects
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Image-Effects 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

📐 Voronoi Description

Transform images with Voronoi diagram effect for artistic, geometric patterns and customization.

📐 Voronoi:

The VoronoiNode is a powerful tool designed to transform images by applying a Voronoi diagram effect, which is a method of partitioning a plane into regions based on the distance to a specific set of points, known as seeds. This node is particularly useful for creating artistic and geometric effects in images, giving them a unique, tessellated appearance. By leveraging the Voronoi diagram, the node can generate visually striking patterns that can enhance the aesthetic appeal of your artwork. The main goal of the VoronoiNode is to provide a flexible and creative way to manipulate images, allowing you to customize the number of seeds, color modes, and outlines to achieve the desired visual effect. This node is essential for artists looking to add a geometric touch to their images, offering a blend of creativity and mathematical precision.

📐 Voronoi Input Parameters:

image

The image parameter is the input image that you want to transform using the Voronoi diagram effect. It should be provided as a tensor, and the node will process this image to apply the desired effect. The image serves as the canvas on which the Voronoi pattern will be overlaid.

num_seeds

The num_seeds parameter determines the number of seed points used to generate the Voronoi diagram. These seeds are the basis for the partitioning of the image into different regions. A higher number of seeds will result in smaller, more numerous regions, while a lower number will create larger, less frequent regions. This parameter allows you to control the granularity of the Voronoi effect.

color_mode

The color_mode parameter specifies how the colors are applied to the Voronoi regions. Different color modes can produce varying visual effects, allowing you to experiment with the appearance of the final image. This parameter is crucial for achieving the desired color scheme in your artwork.

cell_outline

The cell_outline parameter is a boolean that determines whether or not to draw outlines around the Voronoi cells. Enabling this option will add a border to each cell, enhancing the geometric appearance of the image. This can be useful for emphasizing the structure of the Voronoi pattern.

seed_distribution

The seed_distribution parameter controls how the seeds are distributed across the image. The default option is "random," which scatters seeds randomly, but other distribution methods can be used to achieve different effects. This parameter affects the overall layout and uniformity of the Voronoi regions.

outline_color

The outline_color parameter specifies the color of the outlines drawn around the Voronoi cells. This allows you to customize the appearance of the cell borders, making them stand out or blend in with the rest of the image, depending on your artistic vision.

outline_thickness

The outline_thickness parameter defines the thickness of the outlines around the Voronoi cells. A thicker outline can make the cell borders more prominent, while a thinner outline can create a more subtle effect. This parameter helps you fine-tune the visual impact of the cell outlines.

edge_threshold

The edge_threshold parameter is used during seed generation to determine the sensitivity to edges in the image. A lower threshold will result in more seeds being placed near edges, while a higher threshold will distribute seeds more evenly. This parameter is important for controlling the interaction between the Voronoi pattern and the underlying image features.

📐 Voronoi Output Parameters:

result_tensor

The result_tensor is the output of the VoronoiNode, representing the transformed image with the applied Voronoi diagram effect. This tensor contains the final visual result, which can be further processed or saved as an image. The output showcases the unique geometric pattern created by the Voronoi algorithm, providing a distinctive artistic touch to your original image.

📐 Voronoi Usage Tips:

  • Experiment with different num_seeds values to find the right balance between detail and simplicity in your Voronoi pattern.
  • Use the color_mode parameter to explore various color schemes and enhance the visual appeal of your image.
  • Adjust the outline_thickness and outline_color to emphasize or de-emphasize the cell borders, depending on your artistic goals.

📐 Voronoi Common Errors and Solutions:

Image tensor shape mismatch

  • Explanation: The input image tensor does not have the expected shape, which can cause issues during processing.
  • Solution: Ensure that the input image tensor is correctly formatted, typically as a 3D or 4D tensor, before passing it to the node.

Invalid seed distribution method

  • Explanation: The specified seed distribution method is not recognized by the node.
  • Solution: Verify that the seed_distribution parameter is set to a valid option, such as "random," and correct any typos.

Outline color not recognized

  • Explanation: The outline_color parameter is set to a color that is not supported.
  • Solution: Use a standard color name or code that is recognized by the node, such as "black" or a valid RGB value.

📐 Voronoi Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Image-Effects
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.