StrokePattern
StrokePattern
is a base class for stroke patterns.
The following classes inherit from StrokePattern
:
SolidStrokePattern
A solid stroke pattern.
DashedStrokePattern
A dash stroke pattern. It has the following properties:
segments
: A list of segment lengths, which can be either floats or ints.pattern_fit
: The pattern fit strategy, of typePatternFit
. The default value isPatternFit.SCALE_UP
.
DottedStrokePattern
A dot stroke pattern. It has the following properties:
spacing_factor
: The spacing factor between dots, of typeOptionalNumber
.pattern_fit
: The pattern fit strategy, of typePatternFit
. The default value isPatternFit.SCALE_UP
.