MCPcopy Index your code
hub / github.com/microsoft/SandDance / hue

Function hue

docs/app/js/sanddance-app.js:128274–128277  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

128272 };
128273}
128274function hue(a, b) {
128275 var d = b - a;
128276 return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : (0, _constantJsDefault.default)(isNaN(a) ? b : a);
128277}
128278function gamma(y) {
128279 return (y = +y) === 1 ? nogamma : function(a, b) {
128280 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