Learn Create Your Own Split Screen

Next Page

There's an easy way. Here's the stripe:

I've made it slightly wider than the width of the canvas.

You may notice the pattern repeats. In fact, it repeats every 24 pixels (I know this because I counted them).

We can make the stripe appear to be continuously sliding left simply by rendering it one pixel to the left each frame. After we've gone 24 pixels, we start again.