Skip to main content
Search
Search This Blog
Python Developer
Python Source Code
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
April 02, 2021
Turtle Patterns
import
turtle
colors = [
'red'
,
'purple'
,
'blue'
,
'green'
,
'orange'
,
'yellow'
]
t = turtle.Pen()
turtle.bgcolor(
'black'
)
for
x
in
range
(
360
):
t.pencolor(colors[x%
6
])
t.width(x/
100
+
1
)
t.forward(x)
t.left(
59
)
Comments
Popular Posts
May 08, 2021
Birthday patterns
July 08, 2021
Block Puzzle Jewel Game in Python
Comments
Post a Comment