Probably could do this a couple of different ways. The easiest way, probably, would be to simply keyframe the color information and then cycle the animation in the Graph Editor. This method doesn't use a ramp.