2D Exercise questions
In the exercise I found few questionable things:
1. It says to fix the Line class, but you already provided with the demo project you posted.
2. To draw shapes like circle it is easier to use java.awt library or do we have to write the shape generation from scratch?
3. Fill the shape part, again you gave partial solution in the Triangle class for demo posted
Main question is are we allowed to use java.awt library or not?
I updated the assignment description. It should be clearer now. Bascailly, you are not allowed to use the java.awt.* libraries.
Im not sure about the question for number 5.
Add fill color to the different shapes, how would you design your drawing package to incorporate color? Can you create a Picture class that can be drawn by the display class? What method(s) would be in this Picture class?
do you mean by colour all the pixels contains by the shape? And what does the picture class actually do?
The color is for the shape. For example, I need a way for you to draw a yellow circle, which all the pixels inside the circle having the color yellow.
The picture class is a class that draws an entire picture with different shapes inside it. The idea is that you need to design a picture class that can contain other shapes.
BTW, I am moving this thread to "off-topic", since it doesn't have anything to do with env3d at the moment.