HTBasic Help
×
Menu
Index

WINDOW

Sets the bounds for displayable graphics data in user defined units.
 
 WINDOW left,right,bottom,top
 
Usage:
WINDOW 0,X,-100,100*X*RATIO
WINDOW -10,10,0,50
WINDOW 10,-10,50,0
Description:
WINDOW defines the units to be displayed within the VIEWPORT or the hard-clip boundaries. They can be any units of measure you wish to work with (inches, miles, years, etc.). The default WINDOW setting is equal to the default VIEWPORT setting.
The WINDOW and SHOW statements differ in how they map data onto the viewport. WINDOW may use non-isotropic units (the X and Y units are of different lengths); whereas SHOW uses isotropic units (the X and Y units are of equal length).
An image can be "mirrored" about the X or Y axes by reversing the order of the limits for each dimension by specifying the high value before the low value.
See Also: