@mocanvas/mocanvas · interface
interface StrokeOptionsEverything the stroke pipeline can be tuned by.
Properties · 9
easing?: (pressure: number) => numberReshapes how pressure maps to width.
end?: StrokeTerminalOptionsShaping for the end of the stroke.
last?: booleanWhether these are the final points of the stroke, rather than a live prefix.
simulatePressure?: booleanDerive pressure from speed when the input device reports none.
size?: numberThe base width of the stroke, in the points' own units.
smoothing?: numberHow strongly the width is averaged along the stroke, 0–1.
start?: StrokeTerminalOptionsShaping for the start of the stroke.
streamline?: numberHow strongly the input points are pulled towards the previous one, 0–1.
thinning?: numberHow much pressure changes the width, 0–1. Negative inverts it.
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.