Dot/dash line styles
Dot and dash line styles can be applied to objects as strokes and further customized to create a variety of different patterns.
About dot/dash line styles
Example dash/gap pattern set to 1,2,0,0,0,0 (desktop).
A number sequence sets the line's pattern using three number pairs:
- The first two dash and gap values set the length of the initial dot/dash and subsequent space, respectively. This gives a uniform pattern. Ensure the third/fourth and fifth/sixth pairs are set to 0 (as shown above).
- The third/fourth and fifth/sixth pair values, when set, introduce a more complex pattern by setting a different size for additional dots/dashes and spaces.
Dot/dash line style examples
Dashed line style with Butt Cap and Balanced Dash Pattern enabled.
Dotted and dashed line style with Round Cap and Balanced Dash Pattern enabled. The value 0 shows as a dot because it is zero length and formed from a pair of round caps.
Dashed line style with Butt Cap enabled, Balanced Dash Pattern disabled and Phase settings 0 (left) and 2 (right), respectively.
How to create dotted or dashed lines
When enabled, Balanced Dash Pattern
You can choose between dots or dashes by setting the Cap type. Use Round Cap for dots and rounded dashes, Butt Cap for squared dashes.
All values are based on the current line width, e.g. a value of 2 is twice the line width.
How would you rate the help you received from this article?
