Fractal Polygons
From JSXGraph Wiki
<script language="JavaScript"> var brd = JXG.JSXGraph.initBoard('box', {originX: 300, originY: 300, unitX: 1, unitY: 1}); var t = new JSXTurtleObj(brd); function run() {
brd.suspendUpdate(); var code = $('inputtext').value; if (code==) { return; } eval(code); $('logwindow').innerHTML += code+'\n'; //$('inputtext').value = ; brd.unsuspendUpdate();
} function clearturtle() {
t.cs(); //$('inputtext').value = 't.fd(100);';
} </script>