X=50, Y=100
width=150, height=100
Recall that the Graphics
object of Java
has a rectangle drawing method:
drawRect( int x, int y, int width, int height );
To use this method, find the upper-left x and y coordinates for each rectangle, its width, and height. Read these values off of the graph paper.
Object | X | Y | Width | Height |
---|---|---|---|---|
House | ||||
Door | ||||
Left Window | ||||
Right Window | ||||
Tree Trunk |
Fill in the table. (Its OK if you do just a few.)