diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2012-05-29 12:17:40 +0300 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2012-05-29 12:17:40 +0300 |
| commit | 6ff1225ce360f58a13eda2bd8283e32465e3bd05 (patch) | |
| tree | bb8fbe3c6e82ce14b25627e37d3753cab8084b58 | |
| parent | 38b6185b587dcd73a2f5f754af0ed1778a0457a8 (diff) | |
| parent | b2a3dbd4e0177a50aa1e5f1cdeff8cb786564df4 (diff) | |
Merge branch 'master' into gh-pages
| -rw-r--r-- | lsys.js | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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); |
