90 lines
5.4 KiB
XML
90 lines
5.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Textes source en anglais, traduits par le catalogue « voronoi_fill »
|
|
(locale/<langue>/LC_MESSAGES/voronoi_fill.mo). Après toute modification
|
|
d'un texte : python i18n.py, puis compléter po/fr.po et relancer.
|
|
-->
|
|
<inkscape-extension translationdomain="voronoi_fill"
|
|
xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
|
<name>Voronoi Fill</name>
|
|
<id>fr.alexp.voronoi_fill</id>
|
|
|
|
<param name="tab" type="notebook">
|
|
<page name="pattern" gui-text="Pattern">
|
|
<param name="distribution" type="optiongroup" appearance="combo"
|
|
gui-text="Cell layout:">
|
|
<option value="poisson">Even random (organic cells of similar size)</option>
|
|
<option value="random">Pure random (cells of very different sizes)</option>
|
|
<option value="hexagonal">Hexagonal grid (honeycomb, see irregularity)</option>
|
|
</param>
|
|
<param name="cell_size" type="float" precision="2" min="0.1" max="10000"
|
|
gui-text="Cell size:"
|
|
gui-description="Average distance between the centres of neighbouring cells.">10.0</param>
|
|
<param name="irregularity" type="float" precision="0" min="0" max="100"
|
|
gui-text="Irregularity (% of half a cell, hexagonal grid):"
|
|
gui-description="0 gives perfect hexagons.">30</param>
|
|
<param name="seed" type="int" min="0" max="99999"
|
|
gui-text="Random seed:"
|
|
gui-description="Change it to get another pattern with the same settings.">1</param>
|
|
<param name="unit" type="optiongroup" appearance="combo" gui-text="Unit:">
|
|
<!-- Les unités ne se traduisent pas -->
|
|
<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>
|
|
</page>
|
|
|
|
<page name="net" gui-text="Net">
|
|
<param name="net_width" type="float" precision="2" min="0" max="1000"
|
|
gui-text="Net width:"
|
|
gui-description="Gap between two neighbouring cells.">1.0</param>
|
|
<param name="border" type="bool"
|
|
gui-text="Net along the outline (frame of the same width)">true</param>
|
|
<param name="corner_radius" type="float" precision="2" min="0" max="1000"
|
|
gui-text="Cell corner radius:">0.0</param>
|
|
<param name="roundness" type="float" precision="0" min="0" max="100"
|
|
gui-text="Cell roundness (%, 100 = as round as possible):"
|
|
gui-description="Rounds each cell in proportion to its size. The larger of this and the corner radius applies.">0</param>
|
|
<param name="result" type="optiongroup" appearance="combo" gui-text="Result:">
|
|
<option value="net">Net (one path: the shape pierced by the cells)</option>
|
|
<option value="cells">Cells (one path per cell)</option>
|
|
<option value="both">Net and cells</option>
|
|
</param>
|
|
<param name="net_color" type="color" appearance="colorbutton"
|
|
gui-text="Net color:">255</param>
|
|
<param name="cell_color" type="color" appearance="colorbutton"
|
|
gui-text="Cell color:">3014898687</param>
|
|
<param name="keep_original" type="bool"
|
|
gui-text="Keep the original shape">true</param>
|
|
</page>
|
|
|
|
<page name="help" gui-text="Help">
|
|
<!-- Schéma généré par docs/schema_parametres.py, en anglais :
|
|
Inkscape ne traduit pas le chemin d'une image. Affiché aux
|
|
3/4 du PNG (900 px) pour limiter la hauteur de l'onglet. -->
|
|
<image width="675" height="617">images/parameters_en.png</image>
|
|
<separator/>
|
|
<!-- Un paragraphe par ligne : Inkscape le replie à la largeur de
|
|
l'onglet ; des retours à la ligne forcés le laisseraient étroit. -->
|
|
<label xml:space="preserve">Select one or more closed shapes (paths, rectangles, ellipses, polygons, or groups of them), then run the extension. Holes follow the even-odd rule. Convert text to a path first.
|
|
|
|
Cells are Voronoi cells around seeds spread over the shape: the layout sets how the seeds are placed, the cell size their average spacing, the random seed which pattern you get. Two neighbouring cells are separated by exactly the net width; with the outline option, the cells also stay one net width away from the edge of the shape. The corner radius rounds every cell by the same length; the roundness rounds each cell in proportion to its size, up to almost circular cells at 100 %.
|
|
|
|
The result is placed in a group just above each shape. The net is a single path (the shape pierced by the cells, even-odd fill), ready for cutting or printing; the cells are one filled path each. Curves are flattened into short segments.</label>
|
|
</page>
|
|
</param>
|
|
|
|
<effect>
|
|
<object-type>all</object-type>
|
|
<effects-menu>
|
|
<submenu name="AlexDesign"/>
|
|
</effects-menu>
|
|
</effect>
|
|
|
|
<script>
|
|
<command location="inx" interpreter="python">voronoi_fill.py</command>
|
|
</script>
|
|
</inkscape-extension>
|