Draw a open spiral circle turtle graphic Python

Опубликовано: 04 Октябрь 2024
на канале: DevEnum
274
14

How to Draw or create an open colorful Spiral Circle or spider web in python turtle graphics

#shorts #python #circle #pythonprogramming #pythonturtlegraphics
#pythonturtle #turtlegraphics #pythonprogramming #pythontutorial

python turtle graphics tutorial,
python turtle tutorial,
python turtle animation,
python turtle projects,
python turtle graphics animation,
python turtle art,
python turtle basics,
python turtle beginner,
python turtle cool designs


#python #graphics #programming #pythonturtle #turtle #coolgraphics #python #gui #coding #trending #shorts #turtlegraphics
cool shapes drawing using python

--Python code to Draw a Spiral circle
import turtle
window = turtle.setup(width=550,height=500)
myturtle = turtle.Turtle()
#turtle.bgcolor("lightgreen")
turtle.pensize(20)
turtle.speed(6)

colors = ['orange', 'red', 'pink', 'yellow', 'blue', 'green']
for x in range(80):
turtle.pencolor(colors[x % 6])
turtle.width(x / 5 + 1)
turtle.forward(x)
turtle.left(20)
turtle.done()