Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- sides=eval(input("Please enter 2 through 6 sides"))
- t = turtle.Pen()
- turtle.bgcolor("black")
- colors = ["dark blue", "grey", "purple", "red"]
- your_name=turtle.textinput("Enter your name", "What is your name")
- for x in range (990):
- t.speed(999)
- t.pencolor(colors[x%4])
- t.penup()
- t.forward(x * 4)
- t.pendown()
- t.write(your_name, font= ("Arial", int((x+4)/4), "bold"))
- t.left(92)
Add Comment
Please, Sign In to add comment