Pen Object |
Pen objects are used to draw lines. Pens can be any color and integer width and can optionally have a style, such as a dashed line. The interval of a styled line is proportional to the thickness of the pen; a dashed line with thickness 4 has longer dashes than a line with thickness 2.
PEN<(color),width [:style]>
PEN<!blue, 1> PEN<(255,200,10), 2:dashed> PEN<!railway, 1:railway> PEN<(0,0,0,80), 4:custom[3,1,2,1,1,1]>
The color that the pen should be drawn in
The width of the pen, in integer units between 1 and 15 pixels
Specifies a drawing style for the line, from the list given below. Optional.
Renders a continuous line. Default.
Renders a series of dashes. Equivalent to custom[3,5].
Renders as a series of dots. Equivalent to custom[1,1].
Renders as a series of alternating dashes and dots. Equivalent to custom[3,1,1,1].
Renders as a series of alternating dashes and dot pairs. Equivalent to custom[3,1,1,1,1,1].
Renders as a railway.
Takes a list of lengths describing how to draw the line. The items in the list are pairs lengths. The first is the length of the 'drawn' section of the line. The second is the length of the 'gap' section. See above styles for examples.