-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpythonlogo.py
More file actions
98 lines (89 loc) · 1.33 KB
/
pythonlogo.py
File metadata and controls
98 lines (89 loc) · 1.33 KB
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
import turtle as t
t.pensize(2)
def curve():
for i in range(200):
t.right(0.8)
t.forward(1)
def curve2():
for i in range(100):
t.right(0.8)
t.forward(1)
def curve3():
for i in range(100):
t.left(1)
t.forward(1)
t.penup()
t.goto(0,50)
t.pendown()
t.begin_fill()
t.fillcolor("#306998")
t.backward(80)
t.left(90)
t.forward(35)
curve()
t.right(19.5)
t.forward(80)
curve2()
t.right(10)
t.forward(50)
curve3()
t.right(100)
t.forward(50)
curve()
t.right(19.5)
t.forward(181)
t.left(90)
t.forward(20)
t.end_fill()
t.penup()
t.goto(-20,100)
t.pendown()
t.begin_fill()
t.fillcolor("white")
t.circle(19)
t.end_fill()
def curve4():
for i in range(200):
t.right(0.8)
t.backward(1)
def curve5():
for i in range(100):
t.right(0.8)
t.backward(1)
def curve6():
for i in range(100):
t.left(1)
t.backward(1)
t.right(90)
t.penup()
t.goto(-25,-150)
t.pendown()
t.begin_fill()
t.fillcolor("yellow")
t.backward(-80)
t.left(90)
t.backward(35)
curve4()
t.right(19.5)
t.backward(80)
curve5()
t.right(10)
t.backward(50)
curve6()
t.right(100)
t.backward(50)
curve4()
t.right(19.5)
t.backward(181)
t.left(90)
t.backward(20)
t.end_fill()
t.penup()
t.goto(38,-200)
t.pendown()
t.begin_fill()
t.fillcolor("white")
t.circle(19)
t.end_fill()
t.hideturtle()
t.done()