Spirolaterale

TUTORIAL

Spirolaterale

Spirolaterale http://mathworld.wolfram.com/Spirolateral.html

spiro = (n, d, winkel, distanz=20, l=[]) ->
  wiederhole n, ->
    für i in [1..d]
      wenn i in l dann rechts winkel sonst links winkel
      vor i*distanz   

bildschirmleer()
#{ spiro 12, 3, 108, 40, [3]
#{ spiro 4, 9, 90, 20, [6]
spiro 5, 8, 144, 20
versteckeigel()