How does animate() transition between colors?

How does animate() transition between colors?

Are the RGB values set to 0,0,0 and then set to the desired color, or is there a calculation from the initial color to the new color?