A simple plant -see the figure- can be constructed using simple Java instructions. a. Write a java code to construct the above shape. b. A list of such plant on the same line can be easily constructed using suitable Java geometric transformations -see the figure- develop a java code to make such line of plants. c. Many successive lines can also be constructed to create a field of plants, develop a java code to implement the plants field. d. Using suitable rendering, you can assign different random colors -of course all of the colors are of green grades- to each plant, develop a java code to implement such coloring. e. Using suitable randomization, rotate each plant in d) to mimic the situation that some plants are not totally vertical. f. Using suitable randomization, write a java code to assign a different size to each plant. g. If we want to change the direction of the full scene in f) with an arbitrary angle, write a java code to do that. h. Snapshot the output in g) java Code
A simple plant -see the figure- can be constructed using simple Java instructions.
a. Write a java code to construct the above shape.
b. A list of such plant on the same line can be easily constructed using suitable Java geometric transformations -see the figure- develop a java code to make such line of plants.
c. Many successive lines can also be constructed to create a field of plants, develop a java code to implement the plants field.
d. Using suitable rendering, you can assign different random colors -of course all of the colors are of green grades- to each plant, develop a java code to implement such coloring.
e. Using suitable randomization, rotate each plant in d) to mimic the situation that some plants are not totally vertical.
f. Using suitable randomization, write a java code to assign a different size to each plant.
g. If we want to change the direction of the full scene in f) with an arbitrary angle, write a java code to do that.
h. Snapshot the output in g)
java Code
Step by step
Solved in 2 steps