Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
LINE Statement
◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
LINE [[STEP](x1,y1)] - [STEP](x2,y2) [,[color] [,[B[F]] [,style]]]
■ STEP Enables use of relative coordinates.
■ (x1,y1), The screen coordinates of the start of the line
(x2,y2) and at the end of the line.
■ color An integer expression; changes the color of the
line. If not used, default foreground color is used.
■ B Use to draw rectangles; if used, (x1,y1) and
(x2,y2) are diagonally opposite corners.
■ F Use with the B option to fill the rectangle
with color (or the default foreground color).
■ style A numeric expression whose 16-bit integer mask
is used to put pixels on the screen.
See Also ◄CIRCLE► ◄LINE INPUT► ◄SCREEN Statement►
◄PSET► ◄LINE INPUT #►