Next: Draw a very fine
Up: Assignment 5: Moiré patterns
Previous: Draw a better target
- Add variables to paintTarget named smallest, biggest and skip.
smallest will be the diameter of the smallest circle, biggest will
be the diameter of the biggest, and skip will be the distance between
the circles. To start, make them 100, 400 and 50, respectively.
- Add a variable named diameter and initialize it to smallest.
Write a while loop that draws a circle with diameter diameter,
increments diameter by skip, and continues until diameter is greater
- Test your program with various values of smallest, biggest
Allen B. Downey