Make a moving greyscale image and use Colorama to make it rainbow-colored.
Please give more detail?
I saw a tiny circle changing colors. You could make a precomp that's twice as wide as it is tall, put a gradient on it. In the main comp, apply CC Sphere to the precomp, animate it spinning a little. Apply Colorama to it and animate the Input Cycle.