There really is no hope of making this code even half-way decent without
spending the time to rewrite them all properly. Don't want to do any of
that
This commit is contained in:
2025-11-03 17:08:35 +01:00
parent 21a17e33fa
commit ede0ee318b
48 changed files with 1219 additions and 582 deletions

View File

@@ -3,12 +3,13 @@ import datetime
import time
#Setup
# Setup
turtle.ht()
turtle.tracer(0)
turtle.speed(0)
#Definition der Kreise
# Definition der Kreise
def circles(fill):
turtle.pu()
turtle.bk(20)
@@ -21,11 +22,13 @@ def circles(fill):
turtle.end_fill()
turtle.pu()
turtle.home()
turtle.pu()
turtle.bk(25)
#Postitionieren der Turtle
# Postitionieren der Turtle
def distance(pixels):
turtle.home()
turtle.pu()
@@ -33,17 +36,17 @@ def distance(pixels):
turtle.bk(pixels)
turtle.rt(90)
#Berechnen der einzelnen Stellen
# Berechnen der einzelnen Stellen
def main():
turtle.clear()
turtle.home()
h = datetime.datetime.now().hour
min = datetime.datetime.now().minute
sec = datetime.datetime.now().second
hr_pos2 = h//2
mn_pos2 = min//2
sk_pos2 = sec//2
hr_pos2 = h // 2
mn_pos2 = min // 2
sk_pos2 = sec // 2
for i in range(6):
hr_pos2 = hr_pos2 // 2
@@ -63,10 +66,11 @@ def main():
sk_pos2 = sk_pos2 // 2
sk_pos = sk_pos2 % 2
circles(sk_pos)
turtle.update()
#Ausführen
# Ausführen
while True:
main()
time.sleep(0.1)
time.sleep(0.1)