summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2012-06-08 12:18:37 +0300
committerYuval Adam <yuv.adm@gmail.com>2012-06-08 12:18:37 +0300
commit56fc0709432088f1a91ca4cc7fa3c0614de742c6 (patch)
tree07a6fc436b4f1abc406caa086bb9308ebd3708ac
parentb5f792b3f1562c3b824c441b60577c9048cccd9b (diff)
some cleanupv0.2
-rw-r--r--lsys.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/lsys.js b/lsys.js
index 502a351..7918c74 100644
--- a/lsys.js
+++ b/lsys.js
@@ -83,14 +83,10 @@ function LSystem(axiom, rules, draw_constants) {
var geometry = [[0,0,0]];
var x = 0, y = 0, z = 0; // cartesian coordinates
- var nx = 0, ny = 1, nz = 0; // next step delta
-
- var H = 0;
- var L = 1;
- var U = 0;
+ var H = 0, L = 1, U = 0; // next step vector [H,L,U]
for (var i=0; i<this.tree.length; i++) {
- console.log(H, L, U);
+ // console.log(H, L, U);
var c = this.tree.charAt(i);
if (this.draw_constants.indexOf(c) != -1) {