mk90.basic.statements
Statement LINE
Draw a monochrome segment between two pixel coordinates.
Syntax
LINE x1, y1, x2, y2Parameters
| Parameter | Meaning |
|---|---|
x1, x2 | Expressions, 0–119 inclusive. |
y1, y2 | Expressions, 0–63 inclusive. |
Behavior
Validates both endpoints and draws an inclusive integer segment using incremental pixel operations. The line is set, not erased. No full framebuffer copy is needed for each pixel.
Example
10 CLS
20 LINE 0,0,119,63
30 LINE 0,63,119,0
40 ENDLimits and diagnostics
No parentheses-pair syntax, color, box option, filled rectangle, clipping of off-screen endpoints or relative-coordinate mode.
See also
PSET · PRESET · CLS · Language syntax