|
- There is no reading for this homework, but you might want to review Chapter 4 — your choice.
- Do the TODO's in ALL the modules of today's project, if you did not complete them in class.
- Today's project was: Session03_LoopsAndUsingObjects
- For the rectangles function of m4_using_objects_practice, here are some hints:
- If you construct a zg.Rectangle before the loop,
and if that is the only zg.Rectangle that you construct,
then only one zg.Rectangle will appear on the screen at any given time.
It may move around, but it is the only zg.Rectangle, in this case.
- The rectangles function requires that you draw many zg.Rectangles, all at the same time.
So it MUST be the case that the statement
r = zg.Rectangle(...)
needs to be INSIDE the loop.
- Consider doing some arithmetic on the loop variable to get the different zg.Rectangles to be at different places.
- Do try this problem, but if you don't get it, no problem — we will discuss the ideas in this problem
in much more detail in a future session.
- The Course Schedule page has links to documentation on zellegraphics.
|