6 lines
110 B
JavaScript
6 lines
110 B
JavaScript
|
export default function(a, b) {
|
||
|
return a = +a, b = +b, function(t) {
|
||
|
return a * (1 - t) + b * t;
|
||
|
};
|
||
|
}
|