A number of widgets allow you to specify a dashed
dashoffset options give you fine control over
the exact pattern of the dashes.
This option is specified as a tuple of integers. The first integer specifies how many pixels should be drawn. The second integer specifies how many pixels should be skipped before starting to draw again, and so on. When all the integers in the tuple are exhausted, they are reused in the same order until the border is complete.
alternating 3-pixel dashes separated by 5-pixel
gaps. A value of
produces a dash-and-dot pattern, with the dash
seven times as long as the dot or the gaps around
the dot. A value of
produces alternating five-pixel dashes and
To start the dash pattern in a different point of
cycle instead of at the beginning, use an option of
is the number of pixels to skip at the
beginning of the pattern.
For example, for options
dash=(5, 1, 2,
dashoff=3, the first
pattern produced will be: 2 on, 1 off, 2 on, and 1
off. Subsequent patterns will be 5 on, 1 off, 2
on, and 1 off. Here is a screen shot of a
line drawn with this combination of options: