'''lecture_11_turtle_objects.py Play around with multiple `Turtle` objects Oliver W. Layton CS 151: Computational Thinking: Visual Media Spring 2021 ''' import turtle '''Screen''' # call Screen's constructor to make a new pop-up window/canvas canvas = turtle.Screen() # Control how big we want it canvas.setup(width=1000, height=1000) # Customize its background color canvas.bgcolor('blue') # Control what is written on the top of the window canvas.title('I am changing the title!') # Keep screen up until we click '''Turtles''' # create 2 turtles turt1 = turtle.Turtle() turt2 = turtle.Turtle() # Place them in different locations turt1.goto(50, 0) # turt2.goto(-300, -200) # Pick their pens up, then goto their locations, then put one pen down turt2.penup() turt2.goto(-300, -200) turt2.pendown() # turn each one a different amount and move forward turt1.left(60) turt1.forward(100) turt2.right(30) turt2.forward(200) # put pens down, make each turtle unique: different shapes (e.g. turtle, arrow), colors and pen widths turt1.shape('turtle') turt2.shape('arrow') turt1.color('green') turt2.color('red') turt1.pensize(10) turt2.pensize(2) turt1.forward(50) turt2.forward(100) # Call method to determine each turtle object's color canvas.exitonclick()