StrokeOptions
See source codeTable of contents
The options object for getStroke or getStrokePoints.
interface StrokeOptions {}Properties
end
optional
Cap, taper and easing for the end of the line.
end?: {
  cap?: boolean
  easing?(distance: number): number
  taper?: boolean | number
}last
optional
Whether to handle the points as a completed stroke.
last?: booleansimulatePressure
optional
Whether to simulate pressure based on velocity.
simulatePressure?: booleansize
optional
The base size (diameter) of the stroke.
size?: numbersmoothing
optional
How much to soften the stroke's edges.
smoothing?: numberstart
optional
Cap, taper and easing for the start of the line.
start?: {
  cap?: boolean
  easing?(distance: number): number
  taper?: boolean | number
}streamline
optional
streamline?: numberthinning
optional
The effect of pressure on the stroke's size.
thinning?: numberMethods
easing
optional
An easing function to apply to each point's pressure.
Parameters
| Name | Description | 
|---|---|
  |  | 
Returns
numberPrev
SolidPathBuilderOptsNext
StrokePoint