Skip to content

DashedStrokePattern

Inherits: StrokePattern

A stroke pattern of alternating dashes and gaps, defined by segments.

Raises:

Properties

Properties#

pattern_fit #

pattern_fit: PatternFit = SCALE_UP

Determines how this stroke pattern should be fit to a line when their lengths are not equal or multiples.

segments #

segments: list[Number] = field(default_factory=list)

A list of alternating dash and gap lengths, in pixels.

Note

Must contain at least two items, and have an even length.