L-systems: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 56: Line 56:
}
}


function plotter(generator) {
function plotter(generator,symbols) {
     for (var c; c=generator.next(); c) {
     for (var c; c=generator.next(); c) {
         switch(symbols[c]) {
         switch(symbols[c]) {
Line 96: Line 96:
   eval(code);
   eval(code);
   var generator = new expander(level,axiom,rules);
   var generator = new expander(level,axiom,rules);
   plotter(generator);
   plotter(generator,symbols);
   brd.unsuspendUpdate();
   brd.unsuspendUpdate();
}
}

Revision as of 18:38, 30 December 2008