-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIPHONE.py
More file actions
77 lines (75 loc) · 1.21 KB
/
IPHONE.py
File metadata and controls
77 lines (75 loc) · 1.21 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
# @eng.yem1
from turtle import *
tracer(2)
#speed(0)
bgcolor("black")
pencolor("white")
pensize(3)
def Goto(x, y):
penup()
goto(x, y)
pendown()
Goto(-100, 250)
def iphon(x, y):
for i in range(2):
fd(x)
for i in range(90):
fd(0.5)
rt(1)
fd(y)
for i in range(90):
fd(0.5)
rt(1)
begin_fill()
pencolor("#909090")
fillcolor("#ffffff")
iphon(200, 450)
end_fill()
Goto(-90, 240)
iphon(70, 75)
def camera(f,c):
begin_fill()
fillcolor(c)
for i in range(360):
fd(f)
rt(1)
end_fill()
Goto(-85, 233)
camera(0.44, "#101010")
Goto(-85, 165)
camera(0.44, "#101010")
Goto(-24, 197)
camera(0.44, "#101010")
pencolor("#000000")
Goto(-24, 135)
camera(0.12, "#000000")
pencolor("#f0f0f0")
Goto(-24, 225)
camera(0.15, "#f0f0f0")
# apple
Goto(0, 20)
begin_fill()
color("#404040")
left(160)
circle(20, 100)
circle(35, 60)
circle(7, 90)
circle(-8, 100)
circle(7, 100)
circle(33, 30)
left(90)
circle(-14, 155)
left(121)
circle(22, 120)
end_fill()
rt(190)
up()
fd(30)
down()
begin_fill()
circle(-15, 50)
rt(100)
circle(-15, 80)
end_fill()
hideturtle()
done()