How to move this material in Y axis?

Do you just need 4 colors? Are the colors static or do you want to change them at runtime?