go to previous page   go to home page   go to next page

Answer:

Use only one scale factor for both X and Y.The scale factor should be the one based on whichever of width or height is smallest.


fillRect() and fillOval()

The Graphics object can draw filled in objects as well as outlines. fillRect() takes the same parameters as drawRect(), but now it fills in the rectangle with the current pen color.

fillRect(int x, int y, int width, int height)

fillOval() takes the same parameters as drawOval(), but now it fills in the rectangle with the current pen color.

fillOval(int x, int y, int width, int height)

QUESTION 12:

What color do you suggest for the door?