I've poked at MEL here and there out of necessity (it was either that or punch my monitor). Of course if you don't use scripting its going to take longer, I should think you can do it manually by setting some stepped keyframes for lets say the first batch of colors then go to the graph editor, select the curve and set it to cycle post infinity so it keeps repeating.