The best way is to create your line and then either use a clip view as a mask or an overlay on top the same colour of the background and advance it each frame.

quality=best width=480 height=320 ...