public/rot.js/rot.js
function(color1, color2) {
		var result = color1.slice();
		for (var i=0;i<3;i++) {
			for (var j=1;j<arguments.length;j++) {
				result[i] += arguments[j][i];
			}
		}
		return result;
	}
function(color1, color2) {
		var result = color1.slice();
		for (var i=0;i<3;i++) {
			for (var j=1;j<arguments.length;j++) {
				result[i] += arguments[j][i];
			}
		}
		return result;
	}
function ( color1 , color2 ) { var result = color1 . slice ( ) ; for ( var i = 0 ; i < 3 ; i ++ ) { for ( var j = 1 ; j < arguments . length ; j ++ ) { result [ i ] += arguments [ j ] [ i ] ; } } return result ; }
Add two or more colors
@param {number[]} color1
@param {number[]} color2
@returns {number[]}
Add two or more colors