-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathturtle.py
More file actions
39 lines (30 loc) · 726 Bytes
/
Copy pathturtle.py
File metadata and controls
39 lines (30 loc) · 726 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
import turtle
def draw_sshapes():
window = turtle.Screen()
#FLOPPY (SQUARE)
window.bgcolor("green")
floppy = turtle.Turtle()
floppy.shape("square")
floppy.color("red")
floppy.speed(1)
for x in range(0,4):
floppy.forward(100)
floppy.right(90)
#WING (CIRCLE)
window.bgcolor("blue")
wing = turtle.Turtle()
wing.shape("circle")
wing.color("orange")
wing.speed(1)
wing.circle(100)
#BOLT (TRIANGLE)
window.bgcolor("purple")
bolt = turtle.Turtle()
bolt.shape("triangle")
bolt.color("pink")
bolt.speed(1)
for x in range(0,3):
bolt.forward(100)
bolt.right(120)
window.exitonclick()
draw_shapes()