Python Turtle Swirl
Python GUI Turtle Swirl
Adapt, Edit and Create your own Groovy Python Turtle Codes.
Source Code
import turtle
t=turtle.Turtle()
wn = turtle.Screen()
wn.bgcolor("lightblue")
t.hideturtle()
t.up()
t.setpos(0,170)
t.down()
t.write("Python Swirl",move=True,align="center",font=("Cursive",30,"normal"))
t.up()
t.setpos(0,0)
t.down()
t.pensize(7)
t.speed(0)
colors=["blue","purple","red","yellow","hotpink","green"]
for x in range(201):
t.color(colors[x%6])
t.fd(x)
t.left(85)
t=turtle.Turtle()
wn = turtle.Screen()
wn.bgcolor("lightblue")
t.hideturtle()
t.up()
t.setpos(0,170)
t.down()
t.write("Python Swirl",move=True,align="center",font=("Cursive",30,"normal"))
t.up()
t.setpos(0,0)
t.down()
t.pensize(7)
t.speed(0)
colors=["blue","purple","red","yellow","hotpink","green"]
for x in range(201):
t.color(colors[x%6])
t.fd(x)
t.left(85)
Learn more about Python Turtle with this fun Tutorial
Comments
Post a Comment