Back to Node List

Region Fill

region_fill

Fills each RegionMap area with deterministic colors

Reviewed
Guide available
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
領域
regions
RegionMap
Required
画像化する RegionMap です
パレット
palette
Palette
パレットモードで使う任意のパレットです

Output Ports

NameTypeDescription
画像
output
Image
領域ごとに塗った画像です

Parameters

NameTypeDefaultRangeDescription / Options
方式
mode
Enum
RandomColor

各領域をどのように色へ変換するかです

  • ランダム色RandomColor
    各領域に安定したランダム色を割り当てます
  • ランダム明度RandomGray
    各領域に安定したグレースケール値を割り当てます
  • パレットPalette
    領域IDごとにパレット色を割り当てます
  • ID階調RegionId
    領域IDをグレースケールとして出します
シード
seed
Int
10–99999

色のランダム割り当てに使うシードです

Overview

The basic region-system renderer that turns a RegionMap into a visible image. It fills regions with random colors, palette colors, or a solid color. It accompanies region work from checking partitions to preparing flat terrain fills.

Usage tips

  • The go-to two-stage workflow is RandomColor while working to inspect boundaries, then Palette for production colors.

  • Palette mode maps region IDs to palette indices. When ID order matters, arrange it upstream, for example with id_order in image_to_regions.

  • The filled result is an ordinary image, so finish it with normal image nodes such as noise and lighting.

  • Category: Generate / Region / Render

  • Use: temporary per-region colors, terrain surface fills, and palette assignment checks

Modes

Value Description
RandomColor Assign a deterministic random color to every region ID
RandomGray Assign a grayscale value to every region ID
Palette Cycle through the connected Palette in region-ID order
RegionId Visualize region ID as luminance

Region Fill converts a RegionMap for downstream ordinary image processing. Use it with Region Border when only boundaries are needed.

This node is the shortest route to checking colors by region. Use Region Pattern Assign to vary palette assignment per region or apply pattern images. For checking IDs, Region Debug Preview is a better fit.

Related nodes

  • region_pattern_assign — apply patterns or images instead of only colors
  • region_border — extract only region boundary lines
  • region_debug_preview — inspect IDs
  • image_to_regions / region_voronoi — create regions to fill upstream
Back to Node List
Region Fill — PixPipeline Node Reference