Effects / Art

Line Art

The Line Art effect extracts clean edges from images using edge detection, producing results similar to ink drawings, comic outlines, or coloring book pages.

art-lineartPro

Effect ID: art-lineart

Example Configuration

art-lineart.json
{
  "effectId": "art-lineart",
  "lineart": {
    "threshold": 0.2,
    "thickness": 2,
    "softness": 0.3,
    "fillOpacity": 0,
    "invert": false,
    "wave": 0,
    "waveFreq": 3,
    "lineWeight": 0.2,
    "lineColor": "#000000",
    "fillColor": "#ffffff",
    "backgroundColor": "#ffffff"
  }
}

Settings

PropertyTypeDefaultDescription
thresholdnumber0.1Edge detection threshold (0.05-1)
thicknessnumber2Line thickness (1-10)
softnessnumber0.3Edge softness (0-1)
fillOpacitynumber0Interior fill opacity (0-1)
invertbooleanfalseInvert lines (white on dark)
wavenumber0Line wave amount (0-1)
waveFreqnumber3Wave frequency (1-10)
lineWeightnumber0.2Line weight randomness (0-1)
lineColorstring#000000Line color (hex)
fillColorstring#ffffffFill color (hex)
backgroundColorstring#ffffffBackground color (hex)

Edge Detection

The effect uses Sobel edge detection to find boundaries:

  • Detects gradient changes in luminance
  • Threshold controls which edges are drawn
  • Lower threshold = more detail, more noise
  • Higher threshold = cleaner lines, less detail

Best Use Cases

  • Coloring books - Printable outlines
  • Comic art - Manga/comic style inking
  • Technical drawings - Product outlines
  • Logo tracing - Vectorizable outlines

Tips

  • High-contrast source images work best
  • Adjust threshold to control line density
  • Use colored lines on dark background for neon effect
  • Combine with original image for sketch overlay