statement/GRAPHIC statement/GRAPHIC
NAME
GRAPHIC -- Changes graphic mode
ABBREVIATION
g <shift> R
SYNOPSIS
GRAPHIC <mode>[,<clr_flag>]
FUNCTION
This statement puts your computer in one of its 5 graphic modes:
Mode Description
---------------------------------------------
0 normal text
1 high-resolution graphics
2 high-resolution graphics, split screen
3 multicolor graphics
4 multicolor graphics, split screen
When executed, GRAPHIC (mode 1,2,3 or 4) allocates a 10KB bit-mapped
area, and the BASIC text area is moved down below the hi-res area. This
area remain allocated even if the user returns to TEXT mode (GRAPHIC 0).
If 1 is given in the GRAPHIC statement as the second argument, the
screen is also cleared.
INPUTS
<mode> - graphic mode (0-4)
<clr_flag> - screen clear flag (0=off, 1=on)
RESULT
Changes graphic mode and clears screen if clear flag is on.
EXAMPLES
GRAPHIC 1,1
Selects hi-res graphic mode and clears the screen.
GRAPHIC 4,0
Selects multicolor graphics with an area for text, without clearing
the screen.
NOTES
None
BUGS
None
SEE ALSO
BOX
CHAR
CIRCLE
DRAW
PAINT
SCNCLR