From daa94dbea586a7bffa75d90ad62a173a1ff8f236 Mon Sep 17 00:00:00 2001 From: Franziska Naja Date: Wed, 21 Dec 2022 18:50:46 +0000 Subject: [PATCH] Add new file --- Mandala 7 | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Mandala 7 diff --git a/Mandala 7 b/Mandala 7 new file mode 100644 index 0000000..6609619 --- /dev/null +++ b/Mandala 7 @@ -0,0 +1,38 @@ +## Code mit spazierender Schildkröte + +from turtle import * +shape("turtle") +speed(100) +for i in range (12): + for i in range(4): + circle(3,90,2) + forward(120) + left(120) + right(90) + for i in range(6): + right(90) + forward(120) + left(45) +done() + +## Code für das Erstellen von einer svg Datei + +from svg_turtle import SvgTurtle +t = SvgTurtle(1000, 1000) +t.shape("turtle") +t.speed(100) + +for i in range (12): + for i in range(4): + t.circle(3,90,2) + t.forward(120) + t.left(120) + t.right(90) + for i in range(6): + t.right(90) + t.forward(120) + t.left(45) + +t.save_as('PyTurtle7.svg') + +