Project 2: Turtle Graphics
Problem Statement
Draw a picture, scene, landscape or doodle that has identifiable patterns. Your artwork must combine at least three different “atomic” shapes that create a pattern using repetition. Atomic means it’s a building block that you don’t break down into anything else.
- Prompt the user for the window width and height, which must be positive integers.
- One parameterized function should be created per atomic shape. The same function should be able to produce that one shape with different fill colors, border colors, sizes, and tilt.
- Replace any repeated code with loops.
Directions
-
Develop your algorithm in detail before writing any code. Read the problem statement very closely several times to make sure you understand all the small details.
- Accept the assignment in GitHub by opening the Assignment Invitation URL link provided in your Canvas assignment.
- This video provides step-by-step directions for completing GitHub assignments.
-
From inside your GitHub repository, click the Work in Repl.it button.
-
Open the
exercise.py
file in thesrc
directory, and begin coding your solution. -
Update the module docstring with your information.
-
Execute your finished program, and capture a screenshot of your finished scene.
-
Click the Version Control icon in the left menu, type a memo in the What did you change text box, then click Commit & push.
- Upload a screenshot of your finished turle scene into the screenshot directory.
Helpful Resources
- Questions & Answers
- Turtle Graphics: Scene from a forest
- Python Turtle Graphics Documentation
- MindTap Textbook, Sections 5.2 and 7.1