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 1: | Line 1: | ||
<html> | <html> | ||
<form><textarea id="inputtext" rows=12 cols=35 wrap="off" style="width:600px;"> | <form><textarea id="inputtext" rows=12 cols=35 wrap="off" style="width:600px;"> | ||
function mn_eck(ne,sz) { | function mn_eck(ne,sz) { | ||
for(var i=0;i<ne;i++) { | for(var i=0;i<ne;i++) { | ||
t.rt(360/ne); | t.rt(360/ne); | ||
for(var j=0;j<ne;j++) { | |||
t.rt(360/ne); | |||
t.fd(sz); | |||
} | |||
} | } | ||
} | } | ||
Line 39: | Line 35: | ||
//runturtle(); | //runturtle(); | ||
</jsxgraph> | </jsxgraph> | ||
[[Category:Examples]] | |||
[[Category:Turtle Graphics]] |
Revision as of 15:51, 25 February 2009