Sha256: d60c0c0e20c243a0c2ae5a579e44c09db9a19bc5664d492d0b2387e81cb0a15d

Contents?: true

Size: 657 Bytes

Versions: 23

Compression:

Stored size: 657 Bytes

Contents

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rubyvis-0.6.0 vendor/protovis/src/color/Ramp.js
rubyvis-0.5.2 vendor/protovis/src/color/Ramp.js
rubyvis-0.5.1 vendor/protovis/src/color/Ramp.js
rubyvis-0.5.0 vendor/protovis/src/color/Ramp.js
rubyvis-0.4.1 vendor/protovis/src/color/Ramp.js
rubyvis-0.4.0 vendor/protovis/src/color/Ramp.js
rubyvis-0.3.6 vendor/protovis/src/color/Ramp.js
rubyvis-0.3.5 vendor/protovis/src/color/Ramp.js
rubyvis-0.3.4 vendor/protovis/src/color/Ramp.js
rubyvis-0.3.3 vendor/protovis/src/color/Ramp.js
rubyvis-0.3.2 vendor/protovis/src/color/Ramp.js
rubyvis-0.3.1 vendor/protovis/src/color/Ramp.js
rubyvis-0.3.0 vendor/protovis/src/color/Ramp.js
rubyvis-0.2.2 vendor/protovis/src/color/Ramp.js
rubyvis-0.2.1 vendor/protovis/src/color/Ramp.js
rubyvis-0.2.0 vendor/protovis/src/color/Ramp.js
rubyvis-0.1.7 vendor/protovis/src/color/Ramp.js
rubyvis-0.1.6 vendor/protovis/src/color/Ramp.js
rubyvis-0.1.5 vendor/protovis/src/color/Ramp.js
rubyvis-0.1.4 vendor/protovis/src/color/Ramp.js