|
What is the effect of A good answer might be:It changes the current drawing color to blue. | |
Pen Color
Think of the Graphics object as being like a sheet of paper,
some colored pens, and some drawing methods.
Use To draw a line on the Graphics object, use: This draws a line from (x1, y1) to (x2, y2) in the drawing area using the current pen color. As usual, the point (0,0) is the upper left corner of the drawing area.drawLine(int x1, int y1, int x2, int y2) | |
QUESTION 15:Say that the Graphics object grph has a drawing area of width=200 and height=150. Fill in the blanks so that a line is drawn from the lower left corner to the upper right corner of the area. Click Here after you have answered the questiongrph.drawLine( _______, _______, _______, _______ ) |