@mocanvas/mocanvas · interface

StrokePoint

interface StrokePoint

One resampled point of a stroke: where it is, how wide, and how far along.


Properties · 6

distance: number

Distance from the previous stroke point.

input: Vec

The raw input sample this came from.

point: Vec

The smoothed position.

pressure: number

Pressure at this point, 0–1.

radius: number

Half-width of the stroke here.

runningLength: number

Distance from the start of the stroke, along 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.