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