-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPenguin.py
More file actions
59 lines (50 loc) · 758 Bytes
/
Penguin.py
File metadata and controls
59 lines (50 loc) · 758 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
import turtle as t
t.setheading(270)
t.speed('fast')
t.begin_fill()
t.circle(50,180)
t.forward(80)
t.circle(50,180)
t.forward(80)
t.end_fill()
t.fillcolor("white")
t.goto(10,0)
t.begin_fill()
t.circle(40)
t.end_fill()
t.setheading(0)
t.goto(30,80)
t.begin_fill()
t.circle(20)
t.end_fill()
t.goto(70,80)
t.begin_fill()
t.circle(20)
t.end_fill()
t.shape("circle")
t.fillcolor("black")
t.penup()
t.goto(30,100)
t.stamp()
t.goto(70,100)
t.stamp()
t.setheading(270)
t.shape("triangle")
t.fillcolor("orange")
t.goto(50,70)
t.stamp()
t.setheading(0)
t.fillcolor("black")
t.pencolor("white")
t.goto(0,50)
t.stamp()
t.setheading(180)
t.goto(100,50)
t.stamp()
t.shape("square")
t.fillcolor("orange")
t.goto(35,-50)
t.stamp()
t.goto(65,-50)
t.stamp()
t.done()