Draws a line from the point (x1, y1) to (x2, y2).
procedure Line(x1, y1, x2, y2: Integer);
Draws a line in the style and thickness defined by SetLineStyle and uses the color set by SetColor. Use SetWriteMode to determine whether the line is copied or XOR'd to the screen.
is equivalent to
Line(100, 100, 200, 200);
Use LineTo when the current pointer (CP) is at one endpoint of the line. If you want the CP updated automatically when the line is drawn, use LineRel to draw a line a relative distance from the CP. Line doesn't update the CP.
Must be in graphics mode. Also, for drawing a horizontal line, Bar is faster than Line.