Computers can be powerful tools for artists. Their ability to represent curves and lines precisely make them a useful tool for graphic designers. In this assignment you will use the Turtle module as a computer aided design tool.
Details
Create a Python program that uses the turtle module to draw a picture. The picture can be anything you want, but must do the following:
- Use a
for
loop that iterates multiple times. - Use the
input
function to get user input that changes the drawing. - Use
the
begin_fill
andend_fill
to draw something filled.
Extra
Astounding drawings will receive extra credit. I will be the arbiter of whether a drawing is astounding.
Grading
The assignment will be graded on the following requirements according to the course’s programming assignment rubric.
Effort (40%): Here are some examples of drawings with average effort:
Functionality (35%): A functional program will:
- use a loop.
- use user input.
- draw something filled.
Style (25%): A program with good style will:
- include a header comment signifying the authors of the file,
- avoid magic numbers (literal primitive numbers),
- use meaningful names for variables,
- have statements that are small (80 characters or less including leading space) and do one thing, and
- have spaces after commas in argument lists and spaces on both sides of binary operators (=, +, -, *, etc.).
Submission
Submit your program as a .py file on the course Inquire page before class on Wednesday September 23rd.