Smoothbars.m creates a matrix that can be plugged into Screen('MakeTexture'). You can specify the color of your bar, color of the background, size of your bar, etc. Once a texture is created, you can draw many bars at once using Screen('DrawTextures'). Now, where do you want to draw your bars to on the screen?