Home Segments Top Top Previous Next

721: Mainline

Java draws lines using a coordinate system in which the origin is the upper-left corner. Familiarly, the value of the x coordinate increases from 0 as you move right from the left edge of the window. Strangely, the value of the y coordinate increases from 0 as you move down from the top edge:

 0,0                x 
  *------------------> 
  | 
  | 
y | 
  v