Line
Line
Draw a line between two points, with a specified colour. The colour can either be specified as RGB values, or by name.
Inputs
Input name |
Optional/required |
Notes |
Position |
Required |
Line from (x1,y1) to (x2,y2). Position is relative to the top-left of the page, measured in mm. |
Colour |
Optional |
Can be either a/r/g/b values, or the name of a colour. Defaults to black. |
Thickness |
Optional |
Defaults to 1. |
Example 1
<PrintElement name="Line">
<Position x1="5" y1="5" x2="150" y2="50" ></Position>
<Colour a="255" r="255" g="255" b="0" ></Colour>
<Thickness>5</Thickness>
</PrintElement>
Example 2
<PrintElement name="Line">
<Position x1="5" y1="100" x2="150" y2="100" ></Position>
<Colour>blue</Colour>
</PrintElement>