cancel
Showing results for 
Search instead for 
Did you mean: 

How to create an infinitely scrolling bitmap

Richard Lowe
Senior III

I've created a tiled image that is 200% the width of the screen. The idea is to make it appear infinite when scrolling either direction. Any ideas on how to accomplish this?​

1 REPLY 1
Romain DIELEMAN
ST Employee

Hi,

Would creating 2 images out of that one be a possibility ? In that scenario you could put the two images side by side and have their coordinates related to one another, so that when you scroll one image to the right the other one follows. Then when you completely scroll one image out of the display (so to the right for example) it appears again to the left, therefor having an infinite loop. You can also do this with your image that is "200%" width of the screen, you will probably see less artifacts as well.

/Romain