Hi, I have a problem trying to do some kind of animation for a panel, I have 1 bitmap so I want it to be repeated over and over, but I don't know how to do this quiet well, here's an example:
I have this image:

This is what I'm trying to achieve:

and this is what I've done so far
Would this be possible? or do I have to do something else? this is the code I'm using right now, so you might take a look and see if I'm doing something wrong:
bar_pan.pos_x -= 10*time_step;
if(bar_pan.pos_x < 150)
{
bar_pan.pos_x = 450;
}
I would really appreciate some help, this might be some noobish question but I need to do this as fast as I can, since it is for my thesis, thanks for reading this, I hope you can help.