-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPokeBall.py
More file actions
75 lines (64 loc) · 1000 Bytes
/
PokeBall.py
File metadata and controls
75 lines (64 loc) · 1000 Bytes
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
import turtle as t
t.penup()
t.goto(0,-190)
t.pendown()
# t.speed(0)
def curve1():
for i in range(180):
t.right(1)
t.forward(3)
def curve2():
for i in range(180):
t.left(1)
t.forward(1.2)
def curve():
t.begin_fill()
t.pendown()
t.fillcolor("red")
curve1()
t.right(90)
t.forward(106)
t.right(90)
curve2()
t.right(90)
t.forward(102)
t.end_fill()
def curve3():
t.begin_fill()
t.fillcolor("white")
curve1()
t.right(90)
t.forward(106)
t.right(90)
curve2()
t.right(90)
t.forward(102)
t.end_fill()
t.begin_fill()
t.fillcolor("black")
t.circle(200)
t.end_fill()
t.pencolor("white")
t.penup()
t.goto(0,-40)
t.begin_fill()
t.fillcolor("white")
t.pendown()
t.circle(50)
t.end_fill()
t.pencolor("black")
t.penup()
t.goto(0,-10)
t.pendown()
t.circle(20)
t.penup()
t.goto(-170,20)
t.pendown()
t.left(90)
curve()
t.penup()
t.goto(171.2,0)
t.pendown()
t.left(90)
curve3()
t.done()