/*
 * writes a Text word on the screen with
 * colors from white to blue
**/
function txtWhite2Blue(word)
{
	var l=word.length;
	var s=parseInt(255/l)+1;
	for (i=1;i<=l;i++)
	{
		var c=word.charAt(i-1);
		doTxt(c.fontcolor(makeRGB(255-i*s,255-i*s,255)));
	}
}

/*
 * writes a Text word on the screen with
 * colors from blue to white
**/
function txtBlue2White(word)
{
	var l=word.length;
	var s=parseInt(255/l)+1;
	for (i=1;i<=l;i++)
	{
		var c=word.charAt(i-1);
		doTxt(c.fontcolor(makeRGB(0+i*s,0+i*s,i*s)));
	}
}

/*
 * writes a MenuText word on the screen with
 * colors from blue to cyan
**/
function txtMangenta2Blue(word)
{
	var l=word.length;
	var s=parseInt(255/l)+1;
	for (i=1;i<=l;i++)
	{
		var c=word.charAt(i-1);
		doTxt(c.fontcolor(makeRGB(255-i*s,0,255)));
	}
}

/*
 * writes a Text word on the screen with
 * colors from black to blue
**/
function txtBlack2Blue(word)
{
	var l=word.length;
	var s=parseInt(255/l)+1;
	for (i=1;i<=l;i++)
	{
		var c=word.charAt(i-1);
		doTxt(c.fontcolor(makeRGB(0,0,i*s)));
	}
}

/*
 * writes a Text word on the screen with
 * colors from blue to black
**/
function txtBlue2Black(word)
{
	var l=word.length;
	var s=parseInt(255/l)+1;
	for (i=1;i<=l;i++)
	{
		var c=word.charAt(i-1);
		doTxt(c.fontcolor(makeRGB(0,0,255-i*s)));
	}
}

/*
 * writes a Text word on the screen with
 * colors from black to cyan
**/
function txtBlack2Cyan(word)
{
	var l=word.length;
	var s=parseInt(255/l)+1;
	for (i=1;i<=l;i++)
	{
		var c=word.charAt(i-1);
		doTxt(c.fontcolor(makeRGB(0,i*s,i*s)));
	}
}

/*
 * writes a Text word on the screen with
 * colors from blue to cyan
**/
function txtBlue2Cyan(word)
{
	var l=word.length;
	var s=parseInt(255/l)+1;
	for (i=1;i<=l;i++)
	{
		var c=word.charAt(i-1);
		doTxt(c.fontcolor(makeRGB(0,i*s,255)));
	}
}

/*
 * writes a Text word on the screen with
 * colors from black over blue to cyan
**/
function txtBlack2Blue2Cyan(word)
{
	var l=word.length;
	var s1="";
	var s2="";
	for (i=0;i<=l;i++)
	{
		var c=word.charAt(i);
		if (i<(l/2))
			s1+=String(c);
		else
			s2+=String(c);
	}
	txtBlack2Blue(s1);
	txtBlue2Cyan(s2);
}
