83 lines
4.4 KiB
XML
83 lines
4.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
Copyright (C) 2026 Alex
|
|
|
|
Source texts in English, translated by the "dogbandana" catalog
|
|
(locale/<language>/LC_MESSAGES/dogbandana.mo). After changing any text:
|
|
python i18n.py, then fill in po/fr.po and run it again.
|
|
-->
|
|
<inkscape-extension translationdomain="dogbandana"
|
|
xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
|
<name>Dog Bandana Pattern Fill</name>
|
|
<id>fr.alexp.dogbandana</id>
|
|
|
|
<param name="tab" type="notebook">
|
|
<page name="pattern" gui-text="Pattern">
|
|
<param name="period" type="float" precision="2" min="0.2" max="1000"
|
|
gui-text="Period (line spacing, center to center):">4.0</param>
|
|
<param name="line_width" type="float" precision="2" min="0.05" max="1000"
|
|
gui-text="Line width:">2.0</param>
|
|
<param name="margin" type="float" precision="2" min="0" max="1000"
|
|
gui-text="Margin from the shape edge:">0.0</param>
|
|
<param name="unit" type="optiongroup" appearance="combo" gui-text="Unit:">
|
|
<!-- Units are not translated -->
|
|
<option translatable="no" value="mm">mm</option>
|
|
<option translatable="no" value="cm">cm</option>
|
|
<option translatable="no" value="px">px</option>
|
|
<option translatable="no" value="pt">pt</option>
|
|
<option translatable="no" value="in">in</option>
|
|
</param>
|
|
<separator/>
|
|
<param name="iterations" type="int" min="10" max="500"
|
|
gui-text="Iterations (more = longer, smoother lines):"
|
|
gui-description="Few iterations leave many dots and short lines; many iterations give long, regular lines.">60</param>
|
|
<param name="seed" type="int" min="0" max="999999"
|
|
gui-text="Random seed (another number, another maze):">1</param>
|
|
<param name="edge" type="optiongroup" appearance="combo" gui-text="At the shape edge:">
|
|
<option value="cut">Cut the lines (like cut fabric)</option>
|
|
<option value="follow">Lines follow the edge</option>
|
|
</param>
|
|
</page>
|
|
|
|
<page name="style" gui-text="Style">
|
|
<param name="stroke_color" type="color" appearance="colorbutton"
|
|
gui-text="Line color:">255</param>
|
|
<param name="keep_original" type="bool"
|
|
gui-text="Keep the original shape">true</param>
|
|
</page>
|
|
|
|
<page name="help" gui-text="Help">
|
|
<!-- Diagram generated by docs/schema_parametres.py, in English:
|
|
Inkscape does not translate an image path. Shown at 3/4 of
|
|
the PNG size (900 px) to limit the height of the tab. -->
|
|
<image width="675" height="617">images/parameters_en.png</image>
|
|
<separator/>
|
|
<!-- One paragraph per line: Inkscape wraps it to the tab width;
|
|
manual line breaks would leave a narrow column. -->
|
|
<label xml:space="preserve">Select one or more closed shapes (or groups), then run the extension. Each shape is filled with a Turing maze: winding lines of constant width that branch and end in round tips.
|
|
|
|
Each line is drawn once, along its center, with a round-capped stroke of the chosen width: ready for line engraving on a laser cutter. The lines are chained and ordered to limit idle travel of the laser head.
|
|
|
|
Period: distance between the centers of two neighbouring lines. Line width: stroke thickness; keep it below the period (about half gives as much black as white). Margin: free space between the shape edge and the strokes.
|
|
|
|
Iterations: how long the pattern evolves. Few iterations leave dots and short lines, many give long regular lines. The seed changes the drawing while keeping the same look.
|
|
|
|
At the shape edge: cut the lines like a piece of fabric, or let them stop before the edge and run along it.
|
|
|
|
The result is placed in a group just above each shape. Large shapes with a small period take a few seconds.</label>
|
|
</page>
|
|
</param>
|
|
|
|
<effect>
|
|
<object-type>all</object-type>
|
|
<effects-menu>
|
|
<submenu name="AlexDesign"/>
|
|
</effects-menu>
|
|
</effect>
|
|
|
|
<script>
|
|
<command location="inx" interpreter="python">dog_bandana.py</command>
|
|
</script>
|
|
</inkscape-extension>
|