diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:24:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:24:48 +0000 |
commit | cca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch) | |
tree | 146f39ded1c938019e1ed42d30923c2ac9e86789 /share/extensions/lindenmayer.inx | |
parent | Initial commit. (diff) | |
download | inkscape-upstream.tar.xz inkscape-upstream.zip |
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/extensions/lindenmayer.inx')
-rw-r--r-- | share/extensions/lindenmayer.inx | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/share/extensions/lindenmayer.inx b/share/extensions/lindenmayer.inx new file mode 100644 index 0000000..32fe8bc --- /dev/null +++ b/share/extensions/lindenmayer.inx @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>L-system</name> + <id>org.ekips.filter.turtle.lindenmayer</id> + <param name="tab" type="notebook"> + <page name="rules" gui-text="Axiom and rules"> + <param name="axiom" type="string" gui-text="Axiom:">++F</param> + <param name="rules" type="string" gui-text="Rules:">F=FF-[-F+F+F]+[+F-F-F]</param> + <param name="order" type="int" min="0" max="100" gui-text="Order:">3</param> + <param name="step" type="float" min="0.0" max="1000.0" gui-text="Step length (px):">25.0</param> + <param name="randomizestep" type="float" min="0.0" max="100.0" gui-text="Randomize step (%):">0.0</param> + <param name="langle" type="float" min="0.0" max="360.0" gui-text="Left angle:">16.0</param> + <param name="rangle" type="float" min="0.0" max="360.0" gui-text="Right angle:">16.0</param> + <param name="randomizeangle" type="float" min="0.0" max="100.0" gui-text="Randomize angle (%):">0.0</param> + </page> + <page name="help" gui-text="Help"> + <label xml:space="preserve"> +The path is generated by applying the +substitutions of Rules to the Axiom, +Order times. The following commands are +recognized in Axiom and Rules: + +Any of A,B,C,D,E,F: draw forward + +Any of G,H,I,J,K,L: move forward + ++: turn left + +-: turn right + +|: turn 180 degrees + +[: remember point + +]: return to remembered point + +Multiple rules can be provided by +separating them with a semicolon (;). +</label> + </page> + </param> + <effect> + <object-type>all</object-type> + <effects-menu> + <submenu name="Render"/> + </effects-menu> + </effect> + <script> + <command location="inx" interpreter="python">lindenmayer.py</command> + </script> +</inkscape-extension> |