Add new file

This commit is contained in:
Franziska Naja 2022-12-21 18:53:50 +00:00
parent daa94dbea5
commit 1365b2cb25

33
Mandala 6 Normal file
View File

@ -0,0 +1,33 @@
## Code mit spazierender Schildkröte
from turtle import *
speed(0)
shape("turtle")
for i in range(5):
right(75)
forward(150)
for i in range(4):
right(144)
forward(100)
penup()
goto(-10,-200)
pendown()
circle(200)
done()
## Code für das Erstellen von einer svg Datei
from svg_turtle import SvgTurtle
t = SvgTurtle(1000, 1000)
t.speed(100)
for i in range(5):
t.right(75)
t.forward(150)
for i in range(4):
t.right(144)
t.forward(100)
t.penup()
t.goto(-10,-200)
t.pendown()
t.circle(200)
t.save_as('PyTurtle10.svg')