sobelTaps

Eight brightness samples in a ring around each pixel, for finding edges.

sobelTaps(slots: {spacing: PropRef}): SobelRing

Import effects from shaders/std and use effects.stylize.sobelTaps.

spacing is the distance to the ring in device pixels (about 0.5 to 4; thicker strokes at larger values). Returns the ring for chalkSketch.

Parameters

NameTypeNotes
slots{spacing: PropRef}

Example

edges: sobelTaps({spacing: p('edgeThickness')})

See also

  • chalkSketch — The chalk-drawing look: edges become chalk strokes and dark areas fill with cross-hatching.

Used by

Chalkboard