/** * Returns a linear color ramp from the specified start color to the * specified end color. The color arguments may be specified either as * strings or as {@link pv.Color}s. This is equivalent to: * *
pv.Scale.linear().domain(0, 1).range(...)* * @param {string} start the start color; may be a pv.Color. * @param {string} end the end color; may be a pv.Color. * @returns {Function} a color ramp from start to end. * @see pv.Scale.linear */ pv.ramp = function(start, end) { var scale = pv.Scale.linear(); scale.range.apply(scale, arguments); return scale; };