mirror of
https://gitlab.com/naja42/python-malbuch.git
synced 2025-08-09 08:15:42 +02:00
Add new file
This commit is contained in:
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')
|
Reference in New Issue
Block a user