Define these values as constants:
final int treeX = 200, treeY = 45, treeW = 125, treeH = 55; // tree leaves
Add foliage to the tree:
gr.setColor( Color.green ); gr.fillOval( treeX, treeY, treeW, treeH );
fillOval() is like
except that it fills the figure with the current color.
Four green lines make up the rolling hills
in the background.
(Click here to see them.)
Estimate an (X, Y) value for each line's endpoints.
If a value already has a name, like
or can be calculated, do that.
The first line is the one on the left. Fill in the blanks in the following. (It might be a bit tedious to fill them all in, but try at least a few.)
|line 1||L1X1: _______||L1Y1:_______||L1X2:_________||L1Y2:|
|line 2||L2X1: _______||L2Y1:_______||L2X2:_________||L2Y2: _______|
|line 3||L3X1: _______||L3Y1:_______||L3X2:_________||L3Y2: _______|
|line 4||L4X1: _______||L4Y1:_______||L4X2:_________||L4Y2: _______|