LINE

This command will put a line on the screen in the current ink color.

  Syntax
LINE X1,Y1,X2,Y2
  Parameters
X1
Integer
This value specifies the start of the lines x coordinate.
Y1
Integer
This value specifies the start of the lines y coordinate.
X2
Integer
This value specifies the end of the lines x coordinate.
Y2
Integer
This value specifies the end of the lines y coordinate.

  Returns

This command does not return a value.

  Description

The command requires two sets of Coordinates to draw a line from one to the other on the screen. You can also draw to a bitmap, by using the SET CURRENT BITMAP command.

  Example Code
LINE 50,50,320,240
WAIT KEY
  See also

BASIC2D Commands Menu
Index