Edge Detect
The Outline Tool. Identifies the boundary between filled and empty cells in a mask. This is essential for placing walls, fences, or decorative borders.
Ports
| Port | Type | Description |
|---|---|---|
| Input | Bool Mask | The source mask to find edges in. |
| Output | Bool Mask | A new mask containing only the boundary pixels. |
Details
The node checks every filled cell to see if it has at least one empty neighbour. If it does, it's marked as an "edge."
Parameters
- Edge Type:
- Inner: The edge is inside the original shape.
- Outer: The edge is just outside the original shape.
- Both: A thick edge spanning both sides.
Potential Use Cases
- Cave Walls: Use the output to determine exactly where to spawn wall prefabs or collision boundaries.
- Coastlines: Identify the "water's edge" for placing unique sand or foam tiles.
- Territories: If you have a voronoi-based biome map, use Edge Detect to find the borders between biomes for placing mountain ranges or walls.
Bool Mask