moving pixels

Hello , i ve made a very simple draw tool , it just paint pixels with the mouse.
I need that the background can move to the right as in this video:

You can see that the background is always going down. I was wondering how can i achieve this effect in openframeworks, do anybody have done this effect?



it mostly depend on what you want in your background, but, just to talk about the first 2 scenarios that come to my mind:

  • if you want simple stars like those you see in the video you should create a simple particle system that draws litte stars moving in the needed direction; the stars are created at one side of the screen and get killed when reach the other

  • you could also simply draw video the size of your app