Question: Using Java Graphics: Create a pine tree. has 4 parameters: x, y, width, and height. The x and y values stored are the upper-left corner
Using Java Graphics:
Create a pine tree.
has 4 parameters: x, y, width, and height.
The x and y values stored are the upper-left corner of an invisible box that bounds the tree. The width and height are of that invisible box.
The width of the trunk is 1/3 of the width of the box and its height is 1/3 the height of the box.
The height of the branches (the triangle) are 2/3 of the height of the tree and they take up the whole width of the tree.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
