Studio Yotsuba
Back to Node List

Region Voronoi

region_voronoi

Splits the canvas into cells growing around scattered points - the classic look of broken glass, turtle shells, bubbles and cracked stone

Reviewed
Guide available

Input Ports

NameTypeDescription
Mask
mask
Image
Optional image mask that limits where regions are generated. Pixels with luminance * alpha >= 0.5 are treated as the active area; pixels outside the mask become OUTSIDE_ID.

Output Ports

NameTypeDescription
Regions
regions
RegionMap
Generated RegionMap data
Preview
preview
Image
Color preview of the generated regions
Labels
labels
Map
UI overlay label positions for the inspector

Parameters

NameTypeDefaultRangeDescription / Options
Width
width
Int
641–2048

Region map width in pixels

Height
height
Int
641–2048

Region map height in pixels

Point Count
point_count
Int
321–2048

Number of Voronoi seed points

Seed
seed
Int
10–99999

Random seed for repeatable point placement

Placement
placement
Enum
GridJitter—

How seed points are distributed

  • GridJitterGridJitter
    Evenly distributed points with random offsets
  • RandomRandom
    Fully random points
Jitter
jitter
Float
0.850–1 / step 0.01

Point offset amount for grid placement

Distance
distance
Enum
Euclidean—

Distance metric used to assign pixels to regions

  • EuclideanEuclidean
    Rounder cells
  • ManhattanManhattan
    Diamond-biased cells
  • ChebyshevChebyshev
    Blocky square-biased cells
Wrap X
wrap_x
Bool
false—

Treat left and right edges as connected

Wrap Y
wrap_y
Bool
false—

Treat top and bottom edges as connected

ID Order
id_order
Enum
SeedOrder—

How generated regions are renumbered

  • SeedOrderSeedOrder
    Keep original seed order
  • TopLeftTopLeft
    Assign smaller ids by ascending bounding-box top edge, then left edge
  • BottomRightBottomRight
    Assign smaller ids by descending bounding-box bottom edge, then right edge
  • AreaAscAreaAsc
    Assign smaller ids to smaller regions
  • AreaDescAreaDesc
    Assign smaller ids to larger regions
  • RandomRandom
    Assign ids randomly
Show IDs
show_ids
Bool
false—

Show region id labels on the inspector preview

Overview

Generates regions by dividing the canvas according to distance from scattered seed points. It excels at point-centered Voronoi patterns—paving stones, bubbles, spots, and mineral grains—which become useful bases for natural textures when colored with region_fill.

Usage tips

  • The go-to paving-stone recipe is region_voronoi(GridJitter, Manhattan) → region_fill + region_border, overlaying the boundary lines as mortar joints.
  • Choose placement by intent: GridJitter produces evenly sized grains suited to paving, while Random creates more size variation for natural materials.
  • point_count determines grain size; more points produce finer grains. With 32 points on a 64×64 canvas, each grain is roughly 11 pixels square.

Related nodes

  • region_cells — general-purpose division into even working surfaces
  • region_fill / region_border — fills and mortar joints
  • region_merge_small — clean up grains that are too small
  • region_warp — distort division lines

Divides pixels by their distance from seed points and directly generates a final-size RegionMap. It is suited to paving stones, spots, island-like distributions, bubbles, and mineral patterns.

Key parameters

ID Description
width / height Pixel dimensions of the RegionMap
point_count Number of seed points
placement GridJitter / Random
jitter Variation of seed points in grid placement
distance Euclidean / Manhattan / Chebyshev
wrap_x / wrap_y Treat as looping horizontally / vertically
id_order How IDs are reordered after generation

How to use

  1. Set width / height to match the final image.
  2. Choose GridJitter for a natural but even distribution, or Random for rough variation.
  3. Use Manhattan or Chebyshev for angular, pixel-art-like shapes.

When mask is connected, seed points are placed only inside the active mask area and the outside is treated as OUTSIDE. Pixels where lightness * alpha >= 0.5 are active. An arbitrary mask shape takes priority, so wrap_x / wrap_y are disabled in the output while a mask is connected.

This resembles Region Cells, but is intended for surfaces divided by distance from seed points. Use it for point-centered regions such as round stones, bubbles, islands, and spots. Region Cells is easier to adjust when you want to divide the entire canvas into evenly distributed working surfaces.

Back to Node List