From 57a4adb051313fe79ffda7d561e1f0d7fba1ad5b Mon Sep 17 00:00:00 2001 From: Franziska Naja Date: Wed, 21 Dec 2022 19:10:41 +0000 Subject: [PATCH] Add new file --- Mandala 1 | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Mandala 1 diff --git a/Mandala 1 b/Mandala 1 new file mode 100644 index 0000000..7888b21 --- /dev/null +++ b/Mandala 1 @@ -0,0 +1,31 @@ +## Code mit spazierender Schildkröte + +from turtle import * +shape("turtle") +speed(100) +for i in range(12): + for i in range(8): + forward(100) + left(45) + right(30) + for i in range(8): + forward(50) + left(45) +done() + +## Code für das Erstellen von einer svg Datei + +from svg_turtle import SvgTurtle +t = SvgTurtle(1000, 1000) + +for i in range(12): + for i in range(8): + t.forward(100) + t.left(45) + t.right(30) + for i in range(8): + t.forward(50) + t.left(45) + + +t.save_as('PyTurtle1.svg')