@mocanvas/mocanvas · interface
interface StrokePointOne resampled point of a stroke: where it is, how wide, and how far along.
Properties · 6
distance: numberDistance from the previous stroke point.
input: VecThe raw input sample this came from.
point: VecThe smoothed position.
pressure: numberPressure at this point, 0–1.
radius: numberHalf-width of the stroke here.
runningLength: numberDistance 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.