Function: chainSegments()
chainSegments(
segments):OutlineLoop[]
Defined in: src/lib/rendering/outline/index.ts:112
Join outline segments into closed loops, so dashed lines flow continuously along the outline. Straight runs are merged into single lines.
Parameters
segments
readonly OutlineSegment[]
Returns
Example
chainSegments(traceOutline(alpha, width, height, { normalise: false }));