From c8c6680a4e923e13ce8d7f290a1b4170c123582b Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Fri, 2 Feb 2018 16:18:13 +0000 Subject: [PATCH] Add second, more interesting, plant model --- examples/plant2.json | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 examples/plant2.json diff --git a/examples/plant2.json b/examples/plant2.json new file mode 100644 index 0000000..08116f1 --- /dev/null +++ b/examples/plant2.json @@ -0,0 +1,35 @@ +{ + "name": "plant2", + "alphabet": "F+-[]", + "axiom": "F", + "rules": [ + [ + "F", + "FF-[-F+F+F]+[+F-F-F]" + ] + ], + "angle": 22.5, + "distance": 10.0, + "representation": [ + [ + "F", + "Forward" + ], + [ + "+", + "TurnRight" + ], + [ + "-", + "TurnLeft" + ], + [ + "[", + "Push" + ], + [ + "]", + "Pop" + ] + ] +}