Distance

Filters / Effects

Creates a distance fade from white mask areas, or grows source colors outward from them.

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

Inputs

  • mask : White pixels are the starting area for the distance. Black areas fade from the nearest white pixel.
  • source (optional) : Optional color image to grow outward from the white Mask area. Leave disconnected for grayscale distance.

Parameters

ParameterTypeDefaultRangeDescription
maximum_distance
Maximum Distance
float160 to 256How far the fade spreads outward from the Mask.
distance_mode
Distance Mode
enumeuclideanShape used for measuring distance from the mask.
  • euclidean : Use circular distance.
  • manhattan : Use diamond-shaped distance.
  • chebyshev : Use square distance.
source_mode
Source Output
enumcombineHow Source is output after it is grown outward from the Mask.
  • combine : Grow Source outward and fade it to black and transparent over Maximum Distance.
  • only_source : Grow Source outward at full strength within Maximum Distance, then cut off.

Outputs

  • output (default format: inherit)