summaryrefslogtreecommitdiffstats
path: root/share/extensions/lindenmayer.inx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--share/extensions/lindenmayer.inx51
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>