mk90.basic.statements

Statement LINE

Draw a monochrome segment between two pixel coordinates.

Syntax

LINE x1, y1, x2, y2

Parameters

ParameterMeaning
x1, x2Expressions, 0–119 inclusive.
y1, y2Expressions, 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 END

Limits and diagnostics

No parentheses-pair syntax, color, box option, filled rectangle, clipping of off-screen endpoints or relative-coordinate mode.

Status-code reference.

See also

PSET · PRESET · CLS · Language syntax