source:
node_modules/d3-interpolate/src/round.js
| Last change on this file was e4c61dd, checked in by , 6 months ago | |
|---|---|
|
|
| File size: 122 bytes | |
| Line | |
|---|---|
| 1 | export default function(a, b) { |
| 2 | return a = +a, b = +b, function(t) { |
| 3 | return Math.round(a * (1 - t) + b * t); |
| 4 | }; |
| 5 | } |
Note:
See TracBrowser
for help on using the repository browser.
