Slow the turtle down: Difference between revisions

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


function run(n) {
function run(n) {
   if (n>=0) {
   if (n>0) {
     t.fd(20);
     t.fd(20);
     t.lt(12);
     t.lt(12*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