-
Notifications
You must be signed in to change notification settings - Fork 0
/
netflix_logo.py
100 lines (89 loc) · 1.42 KB
/
netflix_logo.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
import turtle
# Initializing the module
t = turtle.Turtle()
t.speed(4)
turtle.bgcolor('white')
t.color('white')
turtle.title("Netflix logo")
# Drawing the black background
t.up()
t.goto(-100, 160)
t.down()
t.color("black")
t.fillcolor("black")
t.begin_fill()
t.forward(200)
t.setheading(270)
s = 360
for i in range(9):
s = s - 10
t.setheading(s)
t.forward(10)
t.forward(180)
s = 270
for i in range(9):
s = s - 10
t.setheading(s)
t.forward(10)
t.forward(200)
s = 180
for i in range(9):
s = s - 10
t.setheading(s)
t.forward(10)
t.forward(180)
s = 90
for i in range(9):
s = s - 10
t.setheading(s)
t.forward(10)
t.forward(30)
t.end_fill()
# Drawing the N shape
t.up()
t.color("black")
t.setheading(270)
t.forward(240)
t.setheading(0)
t.forward(10)
t.down()
t.color("#a10808")
t.fillcolor("#a10808")
t.begin_fill()
t.setheading(5)
t.forward(35)
t.setheading(90)
t.forward(180)
t.setheading(180)
t.forward(35)
t.setheading(270)
t.forward(180)
t.end_fill()
t.setheading(0)
t.up()
t.forward(75)
t.down()
t.color("#a10808")
t.fillcolor("#a10808")
t.begin_fill()
t.setheading(-5)
t.forward(35)
t.setheading(90)
t.forward(183)
t.setheading(180)
t.forward(35)
t.setheading(270)
t.forward(180)
t.end_fill()
t.color("#e60909")
t.fillcolor("#e60909")
t.begin_fill()
t.setheading(113)
t.forward(195)
t.setheading(0)
t.forward(36)
t.setheading(293)
t.forward(199)
t.end_fill()
t.hideturtle()
turtle.exitonclick()