/* LSystem */ function LSystem(axiom, ruleset) { this.alphabet = ['F', '+', '-', '[', ']']; this.axiom = axiom; this.rule = ["", "+", "-", "[", "]"]; this.tree = ""; this.rule[0] = ruleset; this.draw = function(x, y, zoom, angle, drawtype) { a.fillStyle = "#000"; a.strokeStyle = "#000"; a.save(); a.translate(x, y); var i; for (i=0; i