HTBasic Help
×
Menu
Index

GINIT

Initializes graphics parameters to their default values.
 
 GINIT
 
Usage:
GINIT
 
Example:           GINIT.BAS
 
Description:
GINIT is a fast way to reset colors and other graphic options without explicitly setting each option. GINIT also terminates any graphics input device or active plotter. GINITchanges the PLOTTER IS back to "INTERNAL." If the previous PLOTTER IS was a file, it is closed. GINIT changes the GRAPHICS INPUT IS back to "KBD." The default values for graphic options are dependent on the current device driver, but are typically:
 
AREA PEN 1                
MOVE 0,0
CLIP OFF                
PDIR 0
CSIZE 5,0.6                
PEN 1
LDIR 0                
PIVOT 0
LINE TYPE 1,5                
GESCAPE CRT,4
LORG 1
 
The WINDOW and VIEWPORT are both set to their initial values which are: top = 100, bottom = 0, left = 0, right = RATIO*100. Note the value of the right viewport setting depends on the aspect ratio of the graphic device.
 
See Also: