ZX BASIC:PLOT

From BorielWiki

Jump to: navigation, search

Contents

[edit] PLOT

[edit] Syntax

PLOT x, y

or

PLOT <Modifiers>; x, y

Plots a pixel at coordinates (x, y) (pixel column, pixel row). Coordinate (0, 0) designates bottom-left screen corner.

PLOT is enhaced in ZX BASIC to allows ploting in the last two screen rows (this was not possible in Sinclair BASIC). So now we have 16 lines more (192 in total). Sinclair BASIC only used top 176 lines. This means that

PLOT x, y

in Sinclair BASIC is equivalent to

PLOT x, y + 16

in ZX BASIC.

[edit] Remarks

  • This function is not strictly Sinclair BASIC compatible since it uses all 192 screen lines instead of top 176. If you translate PLOT & DRAW commands from Sinclair BASIC as is your drawing will be shifted down 16 pixels.

[edit] See Also

Personal tools