Skip to content

Instantly share code, notes, and snippets.

@aurelianonava
Created August 25, 2014 19:03
Show Gist options
  • Save aurelianonava/dd964701387090b7981e to your computer and use it in GitHub Desktop.
Save aurelianonava/dd964701387090b7981e to your computer and use it in GitHub Desktop.
Turtle Graphics -- basic moves
import turtle
t = turtle.Pen()
screen = t.getscreen()
#Hide turtle
#t.hideturtle()
# the # pound symbol is used to insert single-line comments
#dot() method
t.dot()
# draws at center of stage
t.fd(100)
t.write(t.position(), True, align="left")
#Exits screen with mouse click event
screen.exitonclick()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment