Skip to content

Instantly share code, notes, and snippets.

@ejmurray
Created July 7, 2015 14:39
Show Gist options
  • Save ejmurray/ff1aebe22b3146888e7a to your computer and use it in GitHub Desktop.
Save ejmurray/ff1aebe22b3146888e7a to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
__author__ = 'Ernest'
import turtle
wn = turtle.Screen()
wn.bgcolor("lightgreen") # sets the background colour
wn.title("Hello, Ernest!") # set the window title
tess = turtle.Turtle()
tess.color("Blue") # change the pen colour
tess.pensize(3) # change the pen width
tess.forward(50)
tess.left(120)
tess.forward(50)
wn.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment