Enables definition of graphics window, i.e. area of screen inside which graphics can be drawn with the DRAW
and PLOT
statements. Graphics (including sprites) are cropped to appear only within the graphics window.
VDU 24,lx;by;rx;ty;
lx | Left X (inclusive) |
by | Bottom Y (inclusive) |
rx | Right X (inclusive) |
ty | Top Y (inclusive) |
Four coordinates given as two bytes each, relative to the graphics origin. Use of semi-colon punctuation sends number as two-byte pair: lo followed by hi.
If the graphics window has a negative width or height, it will not crop the graphics, instead the whole screen will be accessible to plotting operations. Care should be taken if this is not the desired result.