Tag Definition: path
Generated by rlextra version 3.6.13
Attributes
Name |
Required? |
Default_Value |
Values |
autoclose |
implied |
None |
['none', 'svg', 'pdf'] |
clip |
implied |
None |
|
close |
implied |
None |
|
fill |
implied |
None |
|
fillrule |
implied |
None |
['none', 'even-odd', 'non-zero'] |
stroke |
implied |
None |
|
x |
required |
None |
|
y |
required |
None |
|
Can contain |
Purpose
This lets you connect lines and curves. This allows you to make complex figures.
See the relevant rml sample here. See the relevant docs here.
Example usage
<story>
<illustration width="100" height="100">
<stroke color="red" width="2"/>
<fill color="blue"/>
<path x="10" y="10" close="no" autoclose="svg" clip="no" fillrule="even-odd" stroke="1" fill="1">
10 90 20 90 20 10 <closePath/>
<moveto>30 10</moveto>30 90 40 90 40 10<closePath/>
<moveto>50 10</moveto>50 90 60 90 60 10<closePath/>
</path>
</illustration>
</story>
Note: Only relevant sections are used in this snippet. Some tags were not included. See some of our samples for further insight of how you may go about setting up a full document using rml.
Example of nesting path from the parent tags to the current tag
<document> ➔ <story> ➔ <illustration> ➔ <path>