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

Function d3_interpolateLab

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

Source from the content-addressed store, hash-verified

4975 }
4976 d3.interpolateLab = d3_interpolateLab;
4977 function d3_interpolateLab(a, b) {
4978 a = d3.lab(a);
4979 b = d3.lab(b);
4980 var al = a.l, aa = a.a, ab = a.b, bl = b.l - al, ba = b.a - aa, bb = b.b - ab;
4981 return function(t) {
4982 return d3_lab_rgb(al + bl * t, aa + ba * t, ab + bb * t) + "";
4983 };
4984 }
4985 d3.interpolateRound = d3_interpolateRound;
4986 function d3_interpolateRound(a, b) {
4987 b -= a;

Callers

nothing calls this directly

Calls 1

d3_lab_rgbFunction · 0.85

Tested by

no test coverage detected