setView()
Purpose
Set custom screen co-ordinates for drawing
Description
Allows user to input their own screen co-ordinates without changing screen resolution.
Syntax
setView( left, top, right, bottom )
Arguments
left value for the left hand side of the view
top value for the top of the view
right value for the right hand side of the view
bottom value for the bottom of the view
Example
image = loadImage( "Untied Games/Enemy small top C", false )
loop
clear()
setView( 0, 0, imageSize( image ).x, imageSize( image ).y )
// Image will fill the view
drawImage( image, 0, 0 )
update()
repeat
Associated Commands