LINE

Function

LINE draws lines and boxes on the graphics screen.

Syntax

Line [(X1,Y1)] - (X2.Y2)[,P[,B[F]]] 0<X<239, 0<Y<63

Examples

10 LINE (10, 10) - (50,60)

Draws a line from the co-ordinates (10,10) to (50,60).

Remarks

The parameter P is optional and if included denotes the colour of the line. If P is odd the the lines are drawn in black and if it is even then the line is drawn in white (i.e. erased). P defaults to odd if omitted.

The parameter B is used for drawing boxes with (X1,Y1) and (X2,Y2) specifying the co-ordinates of the two diagonal corners.

The F parameter is used to fill in the box with the specified colour P. The P parameter must be specified if either the B or BF is used. The following command will fill the graphics screen with a black filled in box:

LINE(0,0)-(239,63),1,BF