-
Notifications
You must be signed in to change notification settings - Fork 0
/
reel.py
54 lines (50 loc) · 810 Bytes
/
reel.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
import turtle as t
t.speed(100)
t.bgcolor('#fb3958')
t.pencolor('black')
t.pensize(10)
t.penup()
t.goto(100,100)
t.pendown()
t.left(180)
def border():
t.forward(150)
for i in range(90):
t.forward(1)
t.left(1)
border()
border()
border()
border()
t.penup()
# Creating A Horizontal Line and One Diagonal Line
for i in range(90):
t.backward(1)
t.right(1)
t.left(90)
t.pendown()
t.forward(259)
t.penup()
t.right(180)
t.forward(85)
t.left(120)
t.pendown()
t.forward(60)
t.right(120)
# Draw another Diagonal Line
t.penup()
t.forward(100)
t.right(60)
t.pendown()
t.forward(60)
#Draw a Triangle
t.penup()
t.goto(5,-20)
t.left(60)
t.right(90)
t.pendown()
for i in range(3):
t.forward(70)
t.left(120)
t.hideturtle()
t.done()