1 /**
  2  * Returns a linear color ramp from the specified <tt>start</tt> color to the
  3  * specified <tt>end</tt> color. The color arguments may be specified either as
  4  * <tt>string</tt>s or as {@link pv.Color}s. This is equivalent to:
  5  *
  6  * <pre>    pv.Scale.linear().domain(0, 1).range(...)</pre>
  7  *
  8  * @param {string} start the start color; may be a <tt>pv.Color</tt>.
  9  * @param {string} end the end color; may be a <tt>pv.Color</tt>.
 10  * @returns {Function} a color ramp from <tt>start</tt> to <tt>end</tt>.
 11  * @see pv.Scale.linear
 12  */
 13 pv.ramp = function(start, end) {
 14   var scale = pv.Scale.linear();
 15   scale.range.apply(scale, arguments);
 16   return scale;
 17 };
 18