MCPcopy Create free account
hub / github.com/microsoft/SandDance / hue

Function hue

docs/tests/v3/es6/js/sanddance-test-es6.js:76205–76208  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

76203 };
76204}
76205function hue(a, b) {
76206 var d = b - a;
76207 return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : (0, _constantJsDefault.default)(isNaN(a) ? b : a);
76208}
76209function gamma(y) {
76210 return (y = +y) === 1 ? nogamma : function(a, b) {
76211 return b - a ? exponential(a, b, y) : (0, _constantJsDefault.default)(isNaN(a) ? b : a);

Callers 3

hslFunction · 0.70
hclFunction · 0.70
cubehelix1Function · 0.70

Calls 1

linearFunction · 0.70

Tested by

no test coverage detected