ColorTo function

How do I use the colorTo function?