lib/toxi/color/TColor.js
function(c, t) {
		if(t === undefined) { t = 0.5; }
		var crgb = c.toRGBAArray();
		this.rgb[0] += (crgb[0] - this.rgb[0]) * t;
		this.rgb[1] += (crgb[1] - this.rgb[1]) * t;
		this.rgb[2] += (crgb[2] - this.rgb[2]) * t;
		this._alpha += (c._alpha - this._alpha) * t;
		return this.setRGB(this.rgb);
	}
function(c, t) {
		if(t === undefined) { t = 0.5; }
		var crgb = c.toRGBAArray();
		this.rgb[0] += (crgb[0] - this.rgb[0]) * t;
		this.rgb[1] += (crgb[1] - this.rgb[1]) * t;
		this.rgb[2] += (crgb[2] - this.rgb[2]) * t;
		this._alpha += (c._alpha - this._alpha) * t;
		return this.setRGB(this.rgb);
	}
function ( c , t ) { if ( t === undefined ) { t = 0.5 ; } var crgb = c . toRGBAArray ( ) ; this . rgb [ 0 ] += ( crgb [ 0 ] - this . rgb [ 0 ] ) * t ; this . rgb [ 1 ] += ( crgb [ 1 ] - this . rgb [ 1 ] ) * t ; this . rgb [ 2 ] += ( crgb [ 2 ] - this . rgb [ 2 ] ) * t ; this . _alpha += ( c . _alpha - this . _alpha ) * t ; return this . setRGB ( this . rgb ) ; }
Blends the color with the given one by the stated amount
@param c
target color
@param t
interpolation factor
@return itself
Blends the color with the given one by the stated amount