-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOlympicCircles.py
115 lines (107 loc) · 1.68 KB
/
OlympicCircles.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import turtle as t
def olympic_circles():
t.penup()
t.goto(0, 0)
t.pensize(5)
t.pendown()
t.pencolor("black")
t.circle(15)
t.penup()
t.goto(15, -15)
t.pencolor("light green")
t.pendown()
t.circle(15)
t.penup()
t.goto(30, 0)
t.pencolor("purple")
t.pendown()
t.circle(15)
t.penup()
t.goto(-30, 0)
t.pencolor("yellow")
t.pendown()
t.circle(15)
t.penup()
t.goto(-15, -15)
t.pencolor("blue")
t.pendown()
t.circle(15)
def dart_board():
dart_board_circle_size = 0
for i in range(4):
t.penup()
t.goto(0, -1 * dart_board_circle_size)
t.pendown()
t.circle(dart_board_circle_size + 30)
dart_board_circle_size += 30
def sun():
t.fillcolor("red")
t.begin_fill()
t.penup()
t.goto(0, -100)
t.pendown()
t.circle(100)
t.end_fill()
t.penup()
t.goto(0, -125)
t.rt(90)
t.pendown()
t.fd(50)
t.lt(180)
t.penup()
t.goto(0, 125)
t.pendown()
t.fd(50)
t.penup()
t.goto(125, 0)
t.rt(90)
t.pendown()
t.fd(50)
t.penup()
t.goto(-125, 0)
t.lt(180)
t.pendown()
t.forward(50)
t.penup()
t.goto(-100, 70)
t.rt(25)
t.pendown()
t.fd(50)
t.penup()
t.goto(100, -70)
t.lt(180)
t.pendown()
t.fd(50)
t.penup()
t.goto(70, -100)
t.rt(25)
t.pendown()
t.fd(50)
t.rt(180)
t.penup()
t.goto(-70, 100)
t.pendown()
t.fd(50)
t.penup()
t.goto(70, 100)
t.rt(90)
t.pendown()
t.fd(50)
t.penup()
t.goto(-70, -100)
t.pendown()
t.forward(-50)
t.penup()
t.goto(-100, -70)
t.lt(155)
t.pendown()
t.forward(50)
t.penup()
t.goto(100, 70)
t.rt(180)
t.pendown()
t.forward(50)
#type a command by deleting the hash from the below:
#sun()
olympic_circles()
#dart_board()