Turtle Module
#importing
import turtle
#create the turtle object
mladen = turtle.Turtle()
#change turtle shape (circle, triangle, turtle...)
mladen.shape("turtle")
#change lone and turtle color
mladen.color("blue") #changes line and turtle to blue
mladen.color("blue", "black") #blue line, black turtle
turtle.colormode(255) #change to use RGB colors
mladen.color(120,50,20)#import turtle
#create screen object
wn = turtle.Screen()
#change background
wn.bgcolor("black")
turtle.colormode(255) #change mode so we can use RGB
wn.bgcolor(200,40,20) #RGB color code
#change background as picture(image needs to be GIF extension, and needs to be in the same package as the py. file)
wn.bgpic("python.gif")
#change title
wn.title("Mladen The Turtle")Last updated