Working w/ effects

I'm trying to get a better grasp of the effects engine, so if a kind person could help me with this example:

I have 5 fixtures that I would like to create a changing color gradient on. Let's say they start at blue and I would like them to smoothly change to red one at a time and then back. I can get this to happen in order from 1 to 5, but I would like to reverse the direction of the change at the end of the cycle (instead of it just starting the repeat at 1 again). Maybe this will be a little clearer:
(in order of change)
1 > 2 > 3 > 4 > 5 - 5 > 4 > 3 > 2 > 1

Thanks!
Related