hue.js 178 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 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); }; }