Difference between revisions of "Turtle Graphics"

From JSXGraph Wiki
Jump to navigationJump to search
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 16:58, 19 December 2008