Constructs a Stroke instance.
List of points defining the stroke.
Optional
fillColor: string = DEFAULT_FILL_COLORFill color for the stroke.
Optional
color: string = DEFAULT_STROKE_COLORStroke color.
Optional
width: number = DEFAULT_WIDTHWidth of the stroke.
Optional
noise: number = DEFAULT_NOISEAmount of noise applied to the stroke.
Optional
strokeWidth: number = DEFAULT_STROKE_WIDTHOuter width of the stroke.
Optional
strokeWidthFunction: ((x) => number) = ...Function to modulate stroke width.
Keeping the range of the element so it could be hidden is not within working area
String representation of the polyline.
Class representing a stylized stroke using Perlin noise.