Random Fly
|
ASSIGNMENT:
Make the following alterations to the sample program:
- Divide the canvas area into nine equal areas in a 3x3
configuration.
- Populate each resulting area with a single fly and have the fly move
around within its area in a random manner.
- Make each fly a different color and assign the colors for the fly
through use of color RGB values stored in an array.
|