Just throwing some ideas out there:
I would put a continuous animation on a dummy object and have it cycle a fixed number of pixels back and forth,
Then you can feed it's position into a selector block.
Selector block has the different materials on it and feeds the quads face block.
You could probably do it with a waveform or timer block to, but I think using a continuous animation might actually be easier.
#XPression