From be02868d750d1924b53571fb338998e29c8c1418 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Mon, 21 May 2012 15:31:22 +0300 Subject: added optional extra draw constants --- lsys.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lsys.js b/lsys.js index ffa4479..9a027e7 100644 --- a/lsys.js +++ b/lsys.js @@ -1,7 +1,8 @@ -function LSystem(axiom, rules) { +function LSystem(axiom, rules, draw_constants) { this.axiom = axiom; this.rules = rules; this.tree = axiom; + this.draw_constants = draw_constants || []; this.iterate = function(n) { for (var i=0; i