More examples: Simple grass
authorJoachim Breitner <mail@joachim-breitner.de>
Sat, 30 May 2009 16:30:55 +0000 (18:30 +0200)
committerJoachim Breitner <mail@joachim-breitner.de>
Sat, 30 May 2009 16:30:55 +0000 (18:30 +0200)
examples/grass.txt [new file with mode: 0644]
examples/tiltedGrass.txt [new file with mode: 0644]

diff --git a/examples/grass.txt b/examples/grass.txt
new file mode 100644 (file)
index 0000000..b092a3a
--- /dev/null
@@ -0,0 +1,7 @@
+Rule "Some height is good"
+WHEN length < 1
+GROW TO 1
+
+Rule "Be fertile"
+WHEN length >= 1
+BLOSSOM
diff --git a/examples/tiltedGrass.txt b/examples/tiltedGrass.txt
new file mode 100644 (file)
index 0000000..8aaa35e
--- /dev/null
@@ -0,0 +1,7 @@
+Rule "Some height is good"
+WHEN length < 1
+BRANCH ANGLE = 40°, LENGTH = 1
+
+Rule "Be fertile"
+WHEN length >= 1
+BLOSSOM