Example for using Priorities
authorJoachim Breitner <mail@joachim-breitner.de>
Fri, 12 Jun 2009 13:50:57 +0000 (15:50 +0200)
committerJoachim Breitner <mail@joachim-breitner.de>
Fri, 12 Jun 2009 13:50:57 +0000 (15:50 +0200)
examples/priorities.txt [new file with mode: 0644]

diff --git a/examples/priorities.txt b/examples/priorities.txt
new file mode 100644 (file)
index 0000000..4bb7924
--- /dev/null
@@ -0,0 +1,23 @@
+RULE "Start"
+WHEN Length <= 0 AND TAG = ""
+BRANCH AT 100%
+ANGLE = -45°, LENGTH = 1, TAG = ""
+ANGLE = 0°, LENGTH = 1, TAG = "Main"
+ANGLE = 45°, LENGTH = 1, TAG = ""
+SET TAG = "Done"
+PRIORITY 10
+
+RULE "Grow Fast"
+WHEN TAG = "Main"
+GROW BY 1
+SET TAG = "MainBlossom"
+PRIORITY 2
+
+RULE "Blossom 1"
+WHEN TAG = "MainBlossom"
+BLOSSOM
+SET TAG = "Main"
+
+RULE "Blossom 2"
+WHEN TAG = ""
+BLOSSOM