Graphics Homework
In this homework you will combine the various sample graphics programs in Chapter 4 and produce an Icon that consists of the first letter of your first name and the program will cause this icon to rotate clockwise about its own center.

As the letter rotates it should get a little smaller until it reaches a certain minimum size. It then should resize itself to its original size and start the process over again.

Start with the animation example and get the car to rotate about its center. Then replace the car drawing with another shape object that contains a single letter of the alphabet.

Finally test your ability to place this rotating letter icon anywhere on the graphics page.

To rotate things you will need to use the Graphics2D.rotate() method. There are two of these, play around with them to get the right one.



pletcha@newpaltz.edu