How to achieve pipeline flow by line

I dont test only my tip, create image with line and space one thickness.
Create obj filled with tiled image.
Create horizontal animation. Simmilar for vertical.
Angled is more complicated.