ColorScale.prototype.setColors = function (colors) { for (var i = 0; i < colors.length; i++) { colors[i] = ColorScale.rgbToArray(colors[i]); } this.colors = colors; };
info at phpclasses dot org