Studio Yotsuba
Back to Node List

Region Bands

region_bands

Divides the canvas into horizontal, vertical or diagonal bands. The starting point for layered looks: water depth, cliff steps, sunset skies

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

Direction
direction
Enum
Horizontal—

Main direction of the generated bands

  • HorizontalHorizontal
    Horizontal bands
  • VerticalVertical
    Vertical bands
  • DiagonalDownDiagonalDown
    Diagonal bands from top-left to bottom-right. Diagonal bands tile seamlessly only on square canvases whose band count divides the size
  • DiagonalUpDiagonalUp
    Diagonal bands from bottom-left to top-right
Band Count
band_count
Int
82–256

Number of region bands

Jitter
jitter
Float
60–64 / step 0.5

Boundary wobble amount in pixels

Frequency
frequency
Float
20.25–16 / step 0.25

Wobble frequency where larger values add finer changes

Seed
seed
Int
10–99999

Random seed for repeatable band variation

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 generated id 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
Show IDs
show_ids
Bool
false—

Show region id labels on the inspector preview

Overview

Generates regions by dividing the canvas into directional bands. Use it to create regular flowing surfaces such as depth levels in water, a sunset sky, or terrain height layers. For cracks and disruptions, use its sibling region_strata.

Usage tips

  • The go-to background recipe is region_bands(Horizontal, band_count=4–8) → region_fill with a gradient-like sequence of colors. This separates water depth, sky, or strata into colored levels.
  • Control boundary variation with jitter and frequency. With jitter=0 the bands are ruler-straight; increasing it creates more natural waves. Frequency controls how fine those waves are.
  • Diagonal directions (DiagonalDown / DiagonalUp) also work for light rays, rain, and a sense of speed.

Related nodes

  • region_strata — strata with cracks and separations
  • region_fill — assign colors to bands
  • region_border / region_boundary_trace — extract boundaries
  • region_warp — distort the entire set of bands

Directly generates a banded RegionMap at the final size in horizontal, vertical, or diagonal directions. It is suited to strata, water depth, steps, and directional surface divisions in backgrounds.

Key parameters

ID Description
width / height Pixel dimensions of the RegionMap
direction Horizontal / Vertical / DiagonalDown / DiagonalUp
band_count Number of bands
jitter Amount of boundary variation
frequency Fineness of boundary variation
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 direction to match the terrain or water-depth flow.
  3. Adjust band_count and jitter, then connect to Region Merge Small or Region Boundary Trace if needed.

When mask is connected, bands are generated 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 node creates more regular bands than Region Strata. Use it when water depth, terrain height steps, or background direction should make the surface flow easy to read. Use Region Strata when you need rocky cracks or interruptions partway through.

Back to Node List