Dragon curve: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 27: Line 27:
</form>
</form>
</html>
</html>
<jsxgraph width="600" height="400" box="box0">
<jsxgraph width="600" height="600" box="box0">
var t;
var t;
var turtle = [];
var turtle = [];
var brd = [];
var brd = [];
brd[0] = JXG.JSXGraph.initBoard('box0', {originX: 300, originY: 300, unitX: 1, unitY: 1});
brd[0] = JXG.JSXGraph.initBoard('box0', {boundingbox: [-300, 300, 300, -300]});
turtle[0] = brd[0].createElement('turtle');
turtle[0] = brd[0].create('turtle');


function expander(level,axiom,rules) {
function expander(level,axiom,rules) {

Latest revision as of 13:43, 7 June 2011

For an explanation see L-systems.