From 6609420bf03972212cbfaeb6b53eee66a478e7bf Mon Sep 17 00:00:00 2001
From: Hong-Phuc Bui <hong-phuc.bui@htwsaar.de>
Date: Sun, 12 May 2024 01:12:16 +0200
Subject: [PATCH] drop some topic

---
 python-grundlage/petal.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/python-grundlage/petal.py b/python-grundlage/petal.py
index 76e0ec4..6a2ce83 100644
--- a/python-grundlage/petal.py
+++ b/python-grundlage/petal.py
@@ -2,18 +2,18 @@
 import turtle
 import math
 
-num_of_petal = 60
+num_of_petal = 5
 petal_length = 100
 # winkel sind in Degree
-alpha = 90 / num_of_petal
+alpha = 90 / (num_of_petal-1)
 beta = 2 * alpha
 gamma = 180 - beta
 
 # abgeleitete Länge
 side_length = petal_length * math.cos(math.radians(alpha))
-
+start_angle = 0
 for petal in range(0, num_of_petal):
-    direction = petal * (360 / num_of_petal)
+    direction = petal * (360 / num_of_petal) + start_angle
     turtle.home()
     turtle.left(direction + alpha)
     turtle.fd(side_length)

--
Gitblit v1.10.0-SNAPSHOT