Flood Fill to Gradient

Filters / Effects

Fills each flood-fill region with a linear gradient along a chosen angle. 0 and 1 are truly reached at the extremal foreground pixels of each island (not at the island's bbox corners), so non-rectangular islands use the full [0, 1] range.

Select a node to adjust its parameters. Double-click a node to inspect.

Inputs

  • input

Parameters

ParameterTypeDefaultRangeDescription
angle
Angle
float00 to 1Gradient direction in turns. 0 = left→right, 0.25 = bottom→top, 0.5 = right→left, 0.75 = top→bottom.
angle_variation
Angle Variation
float00 to 1Per-island angle randomness. 0 = every island uses the base angle; 1 = every island gets a uniformly random angle. Per-island seed comes from flood_fill's island hash.

Outputs

  • output (default format: r32float)