-
Notifications
You must be signed in to change notification settings - Fork 63
/
Tesla.py
106 lines (100 loc) · 1.45 KB
/
Tesla.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
from turtle import *
bgcolor("#000000")
title('Tesla')
speed(10)
def pov(x,y):
up()
goto(x,y)
down()
def logo():
color("#999999")
pov(-160,230)
begin_fill()
lt(18)
circle(-500,40)
rt(90)
fd(17)
rt(89.5)
circle(500,39)
rt(90)
fd(17)
end_fill()
pov(-155,203)
begin_fill()
rt(90.5)
circle(-500,38)
rt(70)
circle(-30,80)
lt(90)
circle(-20,-70)
rt(10)
circle(-300,-15)
rt(93)
fd(280)
rt(160)
fd(280)
lt(80)
circle(300,15)
circle(20,70)
lt(80)
circle(30,-80)
end_fill()
pov(-22,225)
color("#000000")
begin_fill()
lt(30)
fd(60)
lt(130)
fd(65)
end_fill()
def likho():
seth(0)
pencolor("#999999")
pensize(15)
#T
pov(-230,-180)
fd(60)
bk(30)
rt(90)
fd(70)
#E
pov(-130,-180)
lt(90)
fd(60)
pov(-130,-215)
fd(60)
pov(-130,-250)
fd(60)
#S
pov(-20,-180)
fd(60)
bk(60)
rt(90)
fd(32.5)
lt(90)
fd(60)
rt(90)
fd(32.5)
rt(90)
fd(60)
#L
pov(90,-180)
lt(90)
fd(70)
lt(90)
fd(60)
#A
pov(200,-180)
fd(60)
pov(200,-250)
lt(90)
fd(32.5)
rt(90)
fd(60)
rt(90)
fd(32.5)
if __name__ == '__main__':
logo()
likho()
ht()
mainloop()