Rectangle
Rectangle
Draw a rectangle (unfilled) with a specified colour. The colour can either be specified as RGB values, or by name.
Inputs
Input name |
Optional/required |
Notes |
Position |
Required |
Rectangle with top-left corner at (x1,y1) and bottom-right corner at (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. |
Example 1
<PrintElement name="Rectangle">
<Position x1="5" y1="5" x2="150" y2="50" ></Position>
<Colour a="255" r="255" g="255" b="0" ></Colour>
</PrintElement>
Example 2
<PrintElement name="Rectangle">
<Position x1="5" y1="100" x2="150" y2="120" ></Position>
<Colour>blue</Colour>
</PrintElement>