forked from extern/python-malbuch
Add new file
This commit is contained in:
parent
71101092c9
commit
1b19570a15
22
Mandala 3
Normal file
22
Mandala 3
Normal file
@ -0,0 +1,22 @@
|
||||
## 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')
|
Loading…
Reference in New Issue
Block a user