getStroke

Public Function

getStroke

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

Parameters
NameDescription

points

VecLike[]

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

options

(optional)

StrokeOptions

An object with options.

Returns
Vec2d[]
References

VecLike, StrokeOptions, Vec2d

Edit this page
Last edited on 11 May 2023
getStarBoundsgetStrokeOutlinePoints