N-gones - Slow version: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 16: Line 16:
*/
*/
function outerloop(ne,sz) {
function outerloop(ne,sz) {
   t.rt(360/ne);
   if (ne>0) {
  for(var j=ne;j>0;j--) {
     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);
   }
   }
  setTimeout('outerloop('+ne+','+sz+')',25);
}
}



Revision as of 16:03, 25 February 2009