context: dojo.blendColors = function(	/*String|Array|dojo.Color*/ end, 	/*String|Array|dojo.Color*/ start, 	/*Number?*/ weight,	/*dojo.Color?*/ obj){	// summary: 	//		blend colors end and start with weight from -1 to +1, 0 being a 50/50 blend,	//		can reuse a previously allocated dojo.Color object for the result	var d = dojo, t = obj ? obj : new dojo.Color();	if(!(end instanceof d.Color)){ end = new dojo.Color(end); }	if(!(start instanceof d.Color)){ start = new dojo.Color(start); }	weight = Math.min(Math.max(-1, weight || 0), 1);	// Alex: this interface blows.	// map -1 to 1 to the range 0 to 1	weight = (weight + 1) / 2;	d.forEach(["r", "g", "b", "a"], function(c){		t[c] = start[c] + (end[c] - start[c]) * weight;	});		return t.sanitize();	// dojo.Color};
meta: 4497	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4497/3d321e409b1157d94b682d6bfb6236d9d773aecf/Color.js/buggy/_base/Color.js