Skip to content

Commit 1027ec0

Browse files
authored
Add files via upload
make an animation using turtle module
1 parent b4ea84d commit 1027ec0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

animation_using_Turtle_Library.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
import turtle
3+
turtle.bgcolor("light Blue")
4+
5+
turtle.pensize(1.5)
6+
7+
turtle.speed(10)
8+
color = ["red", "blue", "purple", "green"]
9+
10+
for a in range(9):
11+
for i in color:
12+
turtle.color(i)
13+
turtle.circle(50)
14+
turtle.left(80)
15+
turtle.forward(100)
16+
turtle.pencolor("blue")
17+
turtle.backward(20)
18+
turtle.mainloop()

0 commit comments

Comments
 (0)