Skip to content

Tag Definition: closePath

Generated by rlextra version 3.6.13

Attributes

Name

Required?

Default_Value

Values

Can contain
EMPTY

Purpose

This lets you close the currently open path from within, sealing it more cleanly than just returning to the original coordinates.

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 30 10
        </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> ➔ <closePath>