Difference between revisions of "Turtle - Moving and Drawing Assignment"

From WLCS
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:
 
#* Green square in the upper right hand corner of the screen
 
#* Green square in the upper right hand corner of the screen
 
#* Blue rectangle in the lower right hand corner of the screen
 
#* Blue rectangle in the lower right hand corner of the screen
# At the end of your program, you should have '''exitonclick()'''
+
# At the end of your program, you should have '''done()'''
 
# There should not be any lines that connect the shapes to each other. (i.e. lift the pen up)
 
# There should not be any lines that connect the shapes to each other. (i.e. lift the pen up)
 
# Demonstrate your program to Mr. Bui
 
# Demonstrate your program to Mr. Bui

Latest revision as of 18:17, 30 September 2014

Objectives:

  • After creating this program, the student will be able to:
    • Move the turtle around (x and y directions)
    • Draw with the turtle's pen in different colors

Resources:

Directions:

  1. Open Wing IDE
  2. Create a Python program named shapes
  3. At the top of your program, you should have from turtle import *
  4. Command the turtle to draw the following:
    • Red triangle in the upper left hand corner of the screen
    • Green square in the upper right hand corner of the screen
    • Blue rectangle in the lower right hand corner of the screen
  5. At the end of your program, you should have done()
  6. There should not be any lines that connect the shapes to each other. (i.e. lift the pen up)
  7. Demonstrate your program to Mr. Bui