source: node_modules/d3-interpolate/src/quantize.js@ a762898

Last change on this file since a762898 was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Prototype 1.1

  • Property mode set to 100644
File size: 163 bytes
Line 
1export default function(interpolator, n) {
2 var samples = new Array(n);
3 for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1));
4 return samples;
5}
Note: See TracBrowser for help on using the repository browser.