src/color.js
/*
 * Tint a color towards white by the given amount, 0-1.
 */
Tint a color towards white by the given amount, 0-1.
Tint a color towards white by the given amount 0 - 1 .
function tint(out, color, amount) {
	var i, a = color[3];
	for (i = 0; i < 3; i++) {
		out[i] = (1 - amount) * color[i] + amount;
	}
	out[3] = a;
}
function tint ( out , color , amount ) { var i , a = color [ 3 ] ; for ( i = 0 ; i < 3 ; i ++ ) { out [ i ] = ( 1 - amount ) * color [ i ] + amount ; } out [ 3 ] = a ; }
Tint a color towards white by the given amount, 0-1.
Tint a color towards white by the given amount 0 - 1 .