Studio Yotsuba
Back to Node List

Outline

outline

Draws an outline around the opaque area. Outside outlines are clipped to the canvas; use Padding for extra space

Reviewed
Guide available

Input Ports

NameTypeDescription
Image
input
Image
Required
Image to outline

Output Ports

NameTypeDescription
Image
output
Image
Outlined image

Parameters

NameTypeDefaultRangeDescription / Options
Width
width
Int
10–16

Outline width in pixels

Placement
placement
Enum
Outside—

Whether to place the outline outside or inside the image shape

  • OutsideOutside
    Grow the outline outside the opaque region
  • InsideInside
    Draw the outline inside the opaque region
Color
color
Color
[0,0,0,1]—

Outline color

Alpha Threshold
threshold
Float
0.50–1 / step 0.01

Pixels at or above this alpha are treated as solid

Padding
padding
Int
00–32

Extra transparent padding around the result

Pixel Perfect Cleanup
pixel_perfect
Bool
false—

Remove L-corner pixels while preserving outline components and holes

Cleanup Side
pixel_perfect_side
Enum
OuterSide—

Which side of the outline band should receive pixel-perfect cleanup

  • SourceSideSourceSide
    Remove L-corner pixels on the side that touches the original image
  • OuterSideOuterSide
    Remove L-corner pixels on the outside of the outline band
Also Clean Outer Corners
pixel_perfect_also_outer
Bool
false—

When Cleanup Side is Source Side, also clean the outer L-corners

Outline Only
outline_only
Bool
false—

Output only the outline without the original image

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 padding first 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_perfect ON to clean up extra L-shaped pixels.
  • Use outline_only to extract only the line and composite it wherever you want with blend.

Common pitfalls

  • The line breaks or is missing on one side: the silhouette touches the canvas edge. Set padding to at least the line thickness.
  • The line is uneven around a translucent edge: anti-aliasing makes threshold boundary 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: Inside replaces 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 padding only 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_perfect is raster correction on a binarized image mask, not vector correction derived from a path.
  • pixel_perfect_side = SourceSide cleans L-shaped corners relative to the side touching the source; OuterSide uses the outside of the outline band.
  • If pixel_perfect_side = SourceSide would create a transparent hole, correction fills it with source color for a natural connection.
  • If outside correction with placement = Inside would spill the fill, the fill is trimmed as well to stay consistent with the outline.
  • pixel_perfect_also_outer is an extra option for SourceSide that removes remaining outside L-shapes in one more pass.

Examples

  1. Add an outline to pixel text or an icon.
  2. Use outline_only to keep only the edge as a separate layer.
  3. Use placement = Inside to draw an inner outline within the source fill.
  4. Combine pixel_perfect with a 1px outline to clean up L-shapes.
  5. Add padding so later compositing does not clip the line.

Related nodes

  • drop_shadow — cast a shadow rather than drawing an outline
  • glow — create a soft luminous edge
  • surface_outline / surface_edge_highlight — outline and edge processing for Surface assets from 3D
  • anti_alias — soften jaggies after outlining
Back to Node List