setMode()
Purpose
Set the resolution of the screen display
Description
Specify the number of horizontal and vertical pixels in the screen display. The default is 1280 x 720.
Syntax
setMode( width, height )
Arguments
width width of the screen display in pixels (default is 1280)
height height of the screen display in pixels (default is 720)
Example
print( gWidth(), " ", gHeight() )
update()
sleep( 3 )
clear()
setMode( 800, 600 )
print( gWidth(), " ", gHeight() )
update()
sleep( 3 )
Associated Commands
clear(), gHeight(), gWidth(), setDrawTarget(), setMode(), update()