interpolateHclClamped = function() {
return function(start, end) {
var h = hue((start = d3Color128.hcl(start)).h,
(end = d3Color128.hcl(end)).h),
l = color(start.l, end.l);
var c = color(Math.min(start.c, max_chroma(start.h, start.l)),
Math.min(end.c, max_chroma(end.h, end.l)));
var opacity = color(start.opacity, end.opacity);
return function(t) {
start.h = h(t);
start.l = l(t);
start.c = Math.min(c(t), max_chroma(start.h, start.l));
start.opacity = opacity(t);
return start + "";
};
}
}