-
Notifications
You must be signed in to change notification settings - Fork 83
scrollBackground
Steve Paget edited this page Aug 17, 2018
·
3 revisions
scrollBackground( x, y )
Where:
x is the horixontal shift in pixels
y is the vertical shift in pixels
Depending on the type of images that have been set using setBackgroundImage, this will do the following:
- If a single image has been set, it will move the image by the specified number of pixels. The background image will loop
- If a one-dimensional list of images has been set, it will scroll through them horizontally, looping to the start at the end
- If a two-dimensional list is supplied, it will lay them out in a grid format and scroll appropriately.