Difference between revisions of "Dragon curve"

From JSXGraph Wiki
Jump to navigationJump to search
Line 32: Line 32:
 
var brd = [];
 
var brd = [];
 
brd[0] = JXG.JSXGraph.initBoard('box0', {originX: 300, originY: 300, unitX: 1, unitY: 1});
 
brd[0] = JXG.JSXGraph.initBoard('box0', {originX: 300, originY: 300, unitX: 1, unitY: 1});
turtle[0] = brd[0].createElement('turtle');
+
turtle[0] = brd[0].create('turtle');
  
 
function expander(level,axiom,rules) {
 
function expander(level,axiom,rules) {

Revision as of 10:51, 25 March 2011

For an explanation see L-systems.