Set Viewport Offset
Sets the offset of the viewport to be copied from. Syntax
Set Viewport Offset canvas,x,y Description
This command sets the offset from the top,left of the canvas that the viewport is copied from. This can be used to produce scrolling effects. In this picture, the area inside the viewport is copied to the screen. By altering the x and y values a different area will be copied from the screen each time and it will appear as though the screen is scrolling. The x and y values can be retrieved by using the commands Viewport X Offset and Viewport Y Offset.
Table of contents