ColorScale.prototype.vectorAdd = function (vector1, vector2) { var vector = []; for (var i = 0; i < vector1.length; i++) { vector[i] = vector1[i] + vector2[i]; } return vector; };
info at phpclasses dot org