source:
node_modules/d3-interpolate/src/quantize.js@
e4c61dd
| Last change on this file since e4c61dd was e4c61dd, checked in by , 6 months ago | |
|---|---|
|
|
| File size: 163 bytes | |
| Line | |
|---|---|
| 1 | export 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.
