forked from extern/python-malbuch
Add new file
This commit is contained in:
parent
1365b2cb25
commit
28b11e2cb3
26
Mandala 5
Normal file
26
Mandala 5
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
## Code mit spazierender Schildkröte
|
||||||
|
|
||||||
|
from turtle import *
|
||||||
|
speed(0)
|
||||||
|
for i in range (6):
|
||||||
|
n = 20
|
||||||
|
while n <= 100:
|
||||||
|
circle(n+20)
|
||||||
|
n = n+20
|
||||||
|
right(60)
|
||||||
|
done()
|
||||||
|
|
||||||
|
|
||||||
|
## Code für das Erstellen von einer svg Datei
|
||||||
|
|
||||||
|
from svg_turtle import SvgTurtle
|
||||||
|
t = SvgTurtle(1000, 1000)
|
||||||
|
t.speed(0)
|
||||||
|
for i in range (6):
|
||||||
|
n=20
|
||||||
|
while n <= 100:
|
||||||
|
t.circle(n+25)
|
||||||
|
n = n+20
|
||||||
|
t.right(60)
|
||||||
|
|
||||||
|
t.save_as('PyTurtle11.svg')
|
Loading…
Reference in New Issue
Block a user