-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathchristmas wreath.py
147 lines (129 loc) · 1.79 KB
/
christmas wreath.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#christmas wreath
from turtle import *
speed(0)
bgcolor("black")
# Wreath
pensize(2)
penup()
goto(0, -100)
pendown()
for i in range(13):
for colours in ["forestgreen", "darkgreen", "limegreen"]:
color(colours)
circle(150)
left(10)
forward(20)
# Ribbon bow
penup()
goto(-95, 110)
pendown()
color("darkred", "red")
begin_fill()
forward(200)
right(120)
forward(100)
right(120)
forward(200)
left(120)
forward(100)
end_fill()
# Circle in ribbon
penup()
goto(-40, 160)
pendown()
begin_fill()
circle(30)
end_fill()
# Left dangly bit in ribbon
penup()
goto(-25, 132)
pendown()
begin_fill()
right(20)
forward(130)
left(80)
forward(60)
left(118)
forward(150)
end_fill()
# Right dangly bit of ribbon
begin_fill()
right(92)
forward(5)
right(80)
forward(150)
left(110)
forward(60)
left(89)
forward(139)
end_fill()
# Yellow Decoration 1
penup()
goto(-150, 20)
pendown()
color("gold", "yellow")
begin_fill()
circle(10)
end_fill()
# Yellow Decoration 2
penup()
goto(140, -50)
pendown()
begin_fill()
circle(10)
end_fill()
# Yellow Decoration 3
penup()
goto(-30, -130)
pendown()
begin_fill()
circle(10)
end_fill()
# Yellow Decoration 4
penup()
goto(120, 110)
pendown()
begin_fill()
circle(10)
end_fill()
# Red Decoration 1
penup()
goto(140, 40)
pendown()
color("darkred", "red")
begin_fill()
circle(10)
end_fill()
# Red Decoration 2
penup()
goto(-120, -80)
pendown()
begin_fill()
circle(10)
end_fill()
# Red Decoration 3
penup()
goto(60, -120)
pendown()
begin_fill()
circle(10)
end_fill()
# Red Decoration 4
penup()
goto(-135, 110)
pendown()
begin_fill()
circle(10)
end_fill()
# Message
penup()
goto(-170, 250)
pendown()
color("white")
write("MERRY CHRISTMAS", font=("Arial", 25, "bold"))
penup()
goto(-215, -250)
pendown()
write("AND A HAPPY NEW YEAR", font=("Arial", 25, "bold"))
hideturtle()
done()