L-systems: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 22: Line 22:
var angle = 60;
var angle = 60;
var len = 500/Math.pow(2,level);
var len = 500/Math.pow(2,level);
t.setPos(-250,-250*Math.pow(-1,level));
t.setPos(-250*Math.pow(-1,level),-250);
t.rt(90*Math.pow(-1,level));
t.rt(90*Math.pow(-1,level));
</textarea><br />
</textarea><br />

Revision as of 19:26, 30 December 2008