summaryrefslogtreecommitdiffstats
path: root/share/extensions/generate_voronoi.inx
blob: 4f6aabd975b423c4f1b8697f077ce4f7a2d6f899 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
    <name>Voronoi Pattern</name>
    <id>com.inkscape.generate.generate_voronoi</id>
    <dependency type="file" location="inx">voronoi.py</dependency>
    <param name="tab" type="notebook">
        <page name="Options" gui-text="Options">
            <param name="size" type="int" min="2" max="9999" gui-text="Average size of cell (px):">10</param>
            <param name="border" type="int" min="-200" max="9999" gui-text="Size of Border (px):">0</param>
        </page>
        <page name="Help" gui-text="Help">
            <label xml:space="preserve">Generate a random pattern of Voronoi cells. The pattern will be accessible in the Fill and Stroke dialog. You must select an object or a group.

If border is zero, the pattern will be discontinuous at the edges. Use a positive border, preferably greater than the cell size, to produce a smooth join of the pattern at the edges. Use a negative border to reduce the size of the pattern and get an empty border.</label>
        </page>
    </param>
    <effect>
        <object-type>all</object-type>
        <effects-menu>
            <submenu name="Generate from Path"/>
        </effects-menu>
    </effect>
    <script>
        <command location="inx" interpreter="python">generate_voronoi.py</command>
    </script>
</inkscape-extension>