# SpiralMyName.py - prints a colorful spiral of the user's name
import turtle               # Set up turtle graphics
t = turtle.Pen()  
turtle.bgcolor("black")
colors = ["red", "yellow", "blue", "green"]
# Ask the user's name using turtle's textinput pop-up window
your_name = turtle.textinput("Enter your name", "What is your name?")
# Draw a spiral of the name on the screen, written 100 times
for x in range(100):
    t.pencolor(colors[x%4]) # Rotate through the four colors
    t.penup()               # Don't draw the regular spiral lines
    t.forward(x*4)          # Just move the turtle on the screen
    t.pendown()             # Write the user's name, bigger each time
    t.write(your_name, font = ("Arial", int( (x + 4) / 4), "bold") )
    t.left(92)              # Turn left, just as in our other spirals



# SpiralMyName.py - prints a colorful spiral of the user's name
import turtle               # Set up turtle graphics
t = turtle.Pen()  
turtle.bgcolor("black")
colors = ["red", "yellow", "blue", "green"]
# Ask the user's name using turtle's textinput pop-up window
your_name = turtle.textinput("Enter your name", "What is your name?")
# Draw a spiral of the name on the screen, written 100 times
for x in range(100):
    t.pencolor(colors[x%4]) # Rotate through the four colors
    t.penup()               # Don't draw the regular spiral lines
    t.forward(x*4)          # Just move the turtle on the screen
    t.pendown()             # Write the user's name, bigger each time
    t.write(your_name, font = ("Arial", int( (x + 4) / 4), "bold") )
    t.left(92)              # Turn left, just as in our other spirals



# SpiralMyName.py - prints a colorful spiral of the user's name # Set up turtle graphics # Ask the user's name using turtle's textinput pop-up window # Draw a spiral of the name on the screen, written 100 times # Rotate through the four colors # Don't draw the regular spiral lines # Just move the turtle on the screen # Write the user's name, bigger each time # Turn left, just as in our other spirals