forked from extern/python-malbuch
23 lines
365 B
Plaintext
23 lines
365 B
Plaintext
|
## Code mit spazierender Schildkröte
|
||
|
|
||
|
from turtle import *
|
||
|
speed(0)
|
||
|
for n in range(140):
|
||
|
forward(n+(4*n))
|
||
|
left(89)
|
||
|
forward(150)
|
||
|
done()
|
||
|
|
||
|
## Code für das Erstellen von einer svg Datei
|
||
|
|
||
|
from svg_turtle import SvgTurtle
|
||
|
t = SvgTurtle(1500, 1500)
|
||
|
|
||
|
for n in range(140):
|
||
|
|
||
|
t.forward(n+(4*n))
|
||
|
t.left(89)
|
||
|
t.forward(150)
|
||
|
|
||
|
t.save_as('PyTurtle14.svg')
|