Compatible with:
DOS
Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4
Armite F4 ArmiteH7 Picomite CMM2
Syntax:
LINE x1, y1, x2, y2 [, LW [, C]]
LINE [(x1 , y1)] - (x2, y2) [,c [,B[F]]]
Description:
LINE x1, y1, x2, y2 [, LW [, C]]
(not CMM V1 or mono Maximite)
Draws a line starting at the coordinates x1 and y1 and ending at x2
and y2. LW is the lines width and is only valid for horizontal or
vertical lines.
It defaults to 1 if not specified or if the line is a diagonal. C is an
integer representing the colour and defaults to the current foreground
colour.
All parameters can now be expressed as arrays and the software will plot the
number of lines as determined by the dimensions of the smallest array.
'x1', 'y1', 'x2', and 'y2' must all be arrays or all be single variables
/constants otherwise an error will be generated. 'lw' and 'c' can be either
arrays or single variables/constants.
LINE [(x1 , y1)] - (x2, y2) [,c [,B[F]]] (CMM V1 and Mono Maximite)
Draws a line or box on the video screen. x1,y1 and x2,y2 specify the beginning
and end points of a line. 'c' specifies the colour and defaults to the default
foreground colour if not specified.
It can also be -1 to invert the pixels. (x1, y1) is optional and if omitted the
last drawing point will be used.
The optional B will draw a box with the points (x1,y1) and (x2,y2) at opposite
corners. The optional BF will draw a box (as ,B) and fill the interior.
This mode can be used on the CMM2 if OPTION LEGACY is set
Also see LINE INPUT
Last edited: 30 September, 2020