Overview
The go-to pixel-art finishing node for drawing a line around a sprite's opaque silhouette. It greatly improves character and item readability, so it often appears near the end of a game-asset graph.
Usage tips
- The defaults—thickness 1, black, outside—already work well. One node is enough to lift an asset that disappears into the game background.
- Set
paddingfirst when an asset has no canvas margin. An outside line cannot be drawn beyond the canvas, so a tightly cropped asset loses part of the outline. - A line color slightly darker than the asset's darkest color often blends better than pure black. Bind color to a variable or palette reference for managed color schemes.
- If corners on a 1px outside line look jagged, turn
pixel_perfectON to clean up extra L-shaped pixels. - Use
outline_onlyto extract only the line and composite it wherever you want withblend.
Common pitfalls
- The line breaks or is missing on one side: the silhouette touches the canvas edge.
Set
paddingto at least the line thickness. - The line is uneven around a translucent edge: anti-aliasing makes
thresholdboundary detection unstable. Raise or lower the threshold until it settles; 0.5 is normally right for pixel art. - An inside line makes the fill look thinner:
Insidereplaces opaque pixels with the line, which narrows small assets. Consider an outside line plus padding.
Notes
- Even with
placement = Outside, output dimensions match the source. Outline pixels beyond the canvas are clipped. - With
placement = Inside, the line is drawn inside the source as before. - Set
paddingonly when output dimensions should expand. It adds the specified amount of transparent padding on every side. - With
outline_only = true, source-image pixels are omitted. pixel_perfectis raster correction on a binarized image mask, not vector correction derived from a path.pixel_perfect_side = SourceSidecleans L-shaped corners relative to the side touching the source;OuterSideuses the outside of the outline band.- If
pixel_perfect_side = SourceSidewould create a transparent hole, correction fills it with source color for a natural connection. - If outside correction with
placement = Insidewould spill the fill, the fill is trimmed as well to stay consistent with the outline. pixel_perfect_also_outeris an extra option forSourceSidethat removes remaining outside L-shapes in one more pass.
Examples
- Add an outline to pixel text or an icon.
- Use
outline_onlyto keep only the edge as a separate layer. - Use
placement = Insideto draw an inner outline within the source fill. - Combine
pixel_perfectwith a 1px outline to clean up L-shapes. - Add
paddingso later compositing does not clip the line.
Related nodes
drop_shadow— cast a shadow rather than drawing an outlineglow— create a soft luminous edgesurface_outline/surface_edge_highlight— outline and edge processing for Surface assets from 3Danti_alias— soften jaggies after outlining