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

Function interpolateColors

docs/app/js/sanddance-app.js:126979–126981  ·  view source on GitHub ↗
(colors1, type, gamma)

Source from the content-addressed store, hash-verified

126977 };
126978}
126979function interpolateColors(colors1, type, gamma) {
126980 return (0, _d3Interpolate.piecewise)(interpolate(type || "rgb", gamma), colors1);
126981}
126982function quantizeInterpolator(interpolator, count) {
126983 const samples = new Array(count), n = count + 1;
126984 for(let i = 0; i < count;)samples[i] = interpolator(++i / n);

Callers 1

sanddance-app.jsFile · 0.70

Calls 1

interpolateFunction · 0.70

Tested by

no test coverage detected