Changing the chat message color, to create a rainbow

How would I go about changing a chat text color in a way, that it updates, to create a rainbow effect?

I have tried to use functions from ChatSpeaker like :SetExtraData.

Would setting the color over and over again, with a spawn(function()) work?