[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
LINE Draw Line or Box
LINE [[STEP] (x1,y1)] - [STEP] (x2,y2) [,[color] [,B[F]] [,style]]
Draws a line or a box at specified coordinates, in a specified color.
STEP If included, coordinates are relative to last graphics
point referenced (LPR). If omitted, coordinates are
absolute.
x1,y1 If ,B option is used, x1,y1 and x2,y2 are corner
x2,y2 coordinates (column, row) of a rectangular box; otherwise
x1,y1 and x2,y2 are end points of a line. The coordinates
are in pixel points.
color Specifies color to use. Defaults to 3 in medium
resolution, 1 in high resolution.
B Tells Turbo Basic to draw a rectangular box instead of a
line.
F Tells Turbo Basic to fill the box.
style Allows you to draw a broken (dashed) line or box (see
below).
-------------------------------------------------------------------------
Notes: If the point (x1,y1) is not specified, drawing is started
from the last point referenced (LPR).
If STEP is included with x2,y2 but not x1,y1, x2 and y2
are measured relative to the absolute coordinate pair
(x1,y1).
Turbo Basic treats style as a 16-bit integer mask,
plotting the 1 bits and skipping the 0 bits, and repeating
the pattern as many times as necessary to create the
specified line. Thus a style value of 43690 (AAAAh,
1010101010101010b) would produce an evenly dotted line or
box, with every other pixel plotted. Note that Turbo Basic
ignores the "off" pixels; it does not plot them in the
background color.
The style parameter has no affect on filled boxes.
The last point referenced (LPR) after the LINE statement
is the second point specified in the statement.
See Also:
CIRCLE
PAINT
Color Chart
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson