Turtle Graphics: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 26: Line 26:




brd.suspendUpdate();
t.clean();
t.clean();
t.lt(30);
t.lt(30);
t.setPos(0,-100);
t.setPos(0,-100);
snowflake(250, 3);
snowflake(250, 3);
brd.unsuspendUpdate();
</textarea><br />
</textarea><br />
<input type="button" value="run" onClick="run()">  
<input type="button" value="run" onClick="run()">  
Line 132: Line 130:
   
   
function run() {
function run() {
  brd.suspendUpdate();
   eval($('input').value);
   eval($('input').value);
  brd.unsuspendUpdate();
}
}



Revision as of 15:58, 19 December 2008