N-gones - Slow version: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 16: | Line 16: | ||
*/ | */ | ||
function outerloop(ne,sz) { | function outerloop(ne,sz) { | ||
if (ne>0) { | |||
t.rt(360/ne); | t.rt(360/ne); | ||
t.fd(sz); | for(var j=ne;j>0;j--) { | ||
t.rt(360/ne); | |||
t.fd(sz); | |||
} | |||
setTimeout('outerloop('+(ne-1)+','+sz+')',25); | |||
} | } | ||
} | } | ||
Revision as of 16:03, 25 February 2009