From 71101092c9d5954701ab19f7bd1167c89b881f24 Mon Sep 17 00:00:00 2001 From: Franziska Naja Date: Wed, 21 Dec 2022 19:00:01 +0000 Subject: [PATCH] Add new file --- Mandala 4 | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Mandala 4 diff --git a/Mandala 4 b/Mandala 4 new file mode 100644 index 0000000..21abd12 --- /dev/null +++ b/Mandala 4 @@ -0,0 +1,33 @@ +## Code mit spazierender Schildkröte + +from turtle import * +shape("turtle") +speed(0) +for i in range(8): + for i in range(4): + forward(120) + left(90) + right(45) + for i in range(8): + right(90) + forward(90) + 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(8): + for i in range(4): + t.forward(120) + t.left(90) + t.right(45) + for i in range(8): + t.right(90) + t.forward(90) + t.left(45) + +t.save_as('PyTurtle9.svg')