Neah/node_modules/d3-interpolate/src/hue.js
2025-04-17 12:39:10 +02:00

10 lines
178 B
JavaScript

import {hue} from "./color.js";
export default function(a, b) {
var i = hue(+a, +b);
return function(t) {
var x = i(t);
return x - 360 * Math.floor(x / 360);
};
}