MCPcopy Create free account
hub / github.com/idank/explainshell / d3_lab_hcl

Function d3_lab_hcl

explainshell/web/static/js/d3.v3.js:1356–1358  ·  view source on GitHub ↗
(l, a, b)

Source from the content-addressed store, hash-verified

1354 return d3_rgb(d3_xyz_rgb(3.2404542 * x - 1.5371385 * y - .4985314 * z), d3_xyz_rgb(-.969266 * x + 1.8760108 * y + .041556 * z), d3_xyz_rgb(.0556434 * x - .2040259 * y + 1.0572252 * z));
1355 }
1356 function d3_lab_hcl(l, a, b) {
1357 return d3_hcl(Math.atan2(b, a) * d3_degrees, Math.sqrt(a * a + b * b), l);
1358 }
1359 function d3_lab_xyz(x) {
1360 return x > .206893034 ? x * x * x : (x - 4 / 29) / 7.787037;
1361 }

Callers 1

d3.v3.jsFile · 0.85

Calls 1

d3_hclFunction · 0.85

Tested by

no test coverage detected