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

Function hue

docs/tests/v2/es6/js/sanddance.js:105987–105990  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

105985}
105986
105987function hue(a, b) {
105988 var d = b - a;
105989 return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : (0, _constant.default)(isNaN(a) ? b : a);
105990}
105991
105992function gamma(y) {
105993 return (y = +y) === 1 ? nogamma : function (a, b) {

Callers 3

hslFunction · 0.70
hclFunction · 0.70
cubehelixFunction · 0.70

Calls 1

linearFunction · 0.70

Tested by

no test coverage detected