Skip to content

Instantly share code, notes, and snippets.

@mikezink
Created October 10, 2019 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikezink/e703ecc035c8b4b35c7ab4cd76bf23ee to your computer and use it in GitHub Desktop.
Save mikezink/e703ecc035c8b4b35c7ab4cd76bf23ee to your computer and use it in GitHub Desktop.
import turtle
myTurtle = turtle.Turtle()
myWin = turtle.Screen()
def drawSpiral(myTurtle, lineLen):
if lineLen > 0:
myTurtle.forward(lineLen)
myTurtle.right(90)
drawSpiral(myTurtle,lineLen-5)
drawSpiral(myTurtle,100)
myWin.exitonclick()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment