MCPcopy Index your code
hub / github.com/CSAILVision/gandissect / hue

Function hue

client_dist/vendor.js:12940–12943  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

12938}
12939
12940function hue(a, b) {
12941 var d = b - a;
12942 return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(isNaN(a) ? b : a);
12943}
12944
12945function gamma(y) {
12946 return (y = +y) === 1 ? nogamma : function(a, b) {

Callers 3

cubehelixFunction · 0.85
hclFunction · 0.85
hslFunction · 0.85

Calls 1

linearFunction · 0.85

Tested by

no test coverage detected