// Set the resolution of the first monitor to 640*480 pixels, 16 bits
event.load
window.main.pos.now(100,100,200,200)
draw.main.rect(0,0,200,200,num.rgb(100,0,0))
draw.main.paint()
screen.resolution.set(640,480,16)
event.end
event.terminate
screen.resolution.restore()
event.end
// Close the application when the user click
event.mouse:click
app.close()
event.end
|