Slow the turtle down: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 9: Line 9:
   if (n>0) {
   if (n>0) {
     t.fd(20);
     t.fd(20);
     t.lt(12*n/100);
     t.lt(90*(1-n/100));
     var st = 'run(' + (n-1) + ')';
     var st = 'run(' + (n-1) + ')';
     setTimeout(st,50);
     setTimeout(st,50);

Revision as of 14:16, 25 February 2009