@mocanvas/mocanvas · interface

DrawPathBuilderDOpts

interface DrawPathBuilderDOpts

The inputs PathBuilder.toDrawD needs to reproduce one hand-drawn pass.


Properties · 4

offset?: number

How far a point may wander, in stroke widths.

passes?: number

How many overlapping passes to draw; two reads as a pen gone over twice.

randomSeed: string

Seeds the jitter, so the same path redraws identically between frames.

roundness?: number

How much to round the corners between segments.

Mentioned here

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.