Stochastic L-system.
authorspixx <spixx>
Sun, 26 Nov 2006 18:50:34 +0000 (18:50 +0000)
committerspixx <spixx>
Sun, 26 Nov 2006 18:50:34 +0000 (18:50 +0000)
src/lsystem.xml

index 38c9000046bc9f355015fec7421e2ff4a52c2e0f..9cc121b082579a4b00dddbedfef878adb51181c4 100644 (file)
@@ -1,13 +1,11 @@
 <?xml version="1.0"?>
 <lsystem>
-  <axiom>P</axiom>
-  <rule name="E">FF</rule>
-  <rule name="I">FS[//&amp;&amp;L][//^^L]FS!</rule>
-  <rule name="L">[,{-f+ff+f-|-f+ff+f}]</rule>
-  <rule name="O">[&amp;&amp;&amp;E'/W////W////W////W////W]</rule>
-  <rule name="P">I+[P+O]--//[--L]I[++L]-[PO]++PO</rule>
-  <rule name="S">SFS</rule>
-  <rule name="W">['^F][{&amp;&amp;&amp;&amp;-f+f|-f+f}]</rule>
-  <angle>18.0</angle>
-  <iterations>6</iterations>
+  <axiom>F</axiom>
+  <rule name="F" probability="0.33">[+FL]F/[-FL]F!</rule>
+  <rule name="F" probability="0.33">F[&amp;FL]F!</rule>
+  <rule name="F" probability="0.34">F/[-FL]&amp;F!</rule>
+  <rule name="L" probability="1">{,-f++f-|-f++f-'}</rule>
+  <angle>18</angle>
+  <depth>6</depth>
+  <diameter factor="0.93">1</diameter>
 </lsystem>