summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2012-05-29 12:17:40 +0300
committerYuval Adam <yuv.adm@gmail.com>2012-05-29 12:17:40 +0300
commit6ff1225ce360f58a13eda2bd8283e32465e3bd05 (patch)
treebb8fbe3c6e82ce14b25627e37d3753cab8084b58
parent38b6185b587dcd73a2f5f754af0ed1778a0457a8 (diff)
parentb2a3dbd4e0177a50aa1e5f1cdeff8cb786564df4 (diff)
Merge branch 'master' into gh-pages
-rw-r--r--lsys.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/lsys.js b/lsys.js
index c3e3466..1d79dc2 100644
--- a/lsys.js
+++ b/lsys.js
@@ -1,5 +1,5 @@
/*
- * LSystems.JS v0.1
+ * LSystems.JS v0.1.1
* Copyright (c) 2012, Yuval Adam
* http://yuvadm.github.com/lsys.js/LICENSE
*/
@@ -52,7 +52,6 @@ function LSystem(axiom, rules, draw_constants) {
U -= alpha;
RUu = true;
break;
-
case '&':
L += alpha;
RLu = true;
@@ -61,7 +60,6 @@ function LSystem(axiom, rules, draw_constants) {
L -= alpha;
RLu = true;
break;
-
case '<':
H += alpha;
RHu = true;
@@ -70,12 +68,10 @@ function LSystem(axiom, rules, draw_constants) {
H -= alpha;
RHu = true;
break;
-
case '|':
U += Math.PI;
RUu = true;
break;
- // push and pop branch
case '[':
stack.push(x, y, z, H, L, U, geometry);
geometry = [[x,y,z]];
@@ -92,7 +88,6 @@ function LSystem(axiom, rules, draw_constants) {
y = stack.pop();
x = stack.pop();
break;
- // forward draw
case 'F':
nx = 0, ny = 1, nz = 0;
nc = this.tree.charAt(i+1);