-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtauday2024.py
61 lines (56 loc) · 1.38 KB
/
tauday2024.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import turtle as t
def draw_tau():
length = 50
t.title("Tau Day 2024")
t.speed(9)
t.width(5)
t.up()
t.setposition(length * -0.46, 0)
t.down()
t.begin_fill()
t.left(85.33)
t.forward(length * 2.58)
t.setheading(180)
t.forward(length * 0.85)
t.circle(length * 1.59, 65.61)
t.forward(length * 0.32)
t.setheading(180)
t.forward(length * 0.3)
t.right(112.54)
t.forward(length * 1.03)
t.circle(length * -2.61, 28.22)
t.circle(length * -1.72, 30.82)
t.setheading(0)
t.forward(length * 4.17)
t.right(90)
t.forward(length * 1.16)
t.right(90)
t.forward(length * 2.5)
t.left(85.01)
t.forward(length * 2.57)
t.left(1.55)
t.forward(length * 0.74)
t.setheading(270)
t.forward(length * 0.48)
t.circle(length * 1.3, 20.78)
t.circle(length * 0.97, 97.72)
t.circle(length * 1.05, 64.82)
t.setheading(0)
t.forward(length * 0.29)
t.setheading(270)
t.circle(length * -3.51, 21.17)
t.circle(length * -1.47, 80.36)
t.circle(length * -1.54, 65.27)
t.circle(length * -5.3, 15.81)
t.forward(length * 0.8)
t.end_fill()
t.penup()
t.setposition(length *- 1.5, length * 5)
t.pendown()
t.write("Happy Tau Day!" , font=("Courier", 21, "bold"))
def main():
draw_tau()
t.hideturtle()
if __name__ == '__main__':
main()
t.mainloop()