Something like Color.MoveTowards ?

I’m trying to make a material color glow bright to red, then fade back to blue depending on whether the ‘glowTime’ value is between 0 or 1. How can I do this?

var moonGlow : Renderer;
private var blueGlow = Color(0.314, 0.773, 1.000, 0.094);
private var redGlow = Color(1, 0, 0, 0.5);
var glowTime : float;
var glowTimeDest : float;

function GlowRed()
{
	glowTime = 0;
	glowTimeDest = 1;
	InvokeRepeating("Glowing", 0, 0.5);
}
function Glowing()
{
	glowTime = Mathf.MoveTowards(glowTime, glowTimeDest, 0.1);
	moonGlow.material.SetColor("_TintColor", **Color.MoveTowards**(moonGlow.material.GetColor("_TintColor"), redGlow, glowTime) );

	if ( glowTime == 1 )
		glowTimeDest = 0;	// Go back to blue

	if ( glowTime == 0 )
		CancelInvoke("Glowing");
}

You can use Vector4.MoveTowards with colors