getStroke

Get an array of points describing a polygon that surrounds the input points.

function getStroke(points: VecLike[], options?: StrokeOptions): Vec[]

Parameters

NameDescription

points

VecLike[]

An array of points (as [x, y, pressure] or {x, y, pressure}). Pressure is optional in both cases.

options

An object with options.

Returns

Vec[]
Prev
getPointsFromDrawSegments
Next
getStrokeOutlinePoints