DashStyle¶
Overview¶
Enumeration
A DashStyle describes a pattern for drawing a stroke. The pattern gives the lengths of those parts of a stroke that are actually drawn and of those parts that are not drawn.
Literals
Name |
Symbol |
---|---|
Solid |
Solid |
Dot |
Dot |
Dash |
Dash |
LongDash |
LongDash |
LongDashShortDash |
LongDashShortDash |
ShortDash |
ShortDash |
LongDashShortDashShortDash |
LongDashShortDashShortDash |
DashShortDash |
DashShortDash |
Appearance¶
Each DashStyle is characterized by a sequence of an even number of double values. The first of these values gives the length of a visible part of a stroke, the second one the length of an invisible part. Optional further pairs of double values in the pattern are applied in the same way. The entire pattern is applied repeatedly until the end of a stroke.
The lengths in a DashStyle’s pattern are given in terms of the Stroke’s Width in mm, i.e., the dimensionless double values must be multiplied with the :dexpi`Stroke.Width` in order to get the actual lengths.
The following table gives heuristically proven patterns for the different DashStyles.