On line guide/help
You are on page 16 of the online help. Navigate sequentially through the guide pages or search for a topic of interest to you.
Index Prev. NextLine style
Set the line style
When used within a line element, it defines the line style for that specific print instruction. When used as a standalone element, it defines the default line style to use when one of the style parameters is not specifically defined.
Parameters
Elements / attributes of the <linestyle> element:
<width> or <linewidth> Specifies the thickness of the line (numeric value, float)
<color> or <linecolor> Defines the line color using hexadecimal color codes (e.g., "000000" for black, "00FF00" for green)
<dash> or <linedash> Creates a dashed line pattern using two comma-separated values:
First value: Length of the dash segment
Second value: Length of the gap between dashes
Format: "dash_length,gap_length" (e.g., "2,4" creates 2-unit dashes with 4-unit gaps)
If only a numeric value is specified, e.g. 2, this is equivalent to 2.2 (i.e. a 2-long dash followed by a 2-long gap).
0 Without dash
<cap> (string) Type of cap to put on the line. Possible values are:
butt
round
square
The difference between "square" and "butt" is that "square" projects a flat end past the end of the line.
<join> (string) Type of join. Possible values are:
miter
round
evel
<phase> (numeric value, integer) Modifier on the dash pattern which is used to shift the point at which the pattern starts.
<color> (#RRGGBB) Draw color. Format: RR red (hex format, 00 to FF), GG green (hex format, 00 to FF), BB blue (hex format, 00 to FF)