@razorpay/blade
Version:
The Design System that powers Razorpay
34 lines (27 loc) • 897 B
JavaScript
import '../../d3-color/src/index.js';
import nogamma, { hue } from './color.js';
import cubehelix$2 from '../../d3-color/src/cubehelix.js';
function cubehelix(hue) {
return (function cubehelixGamma(y) {
y = +y;
function cubehelix(start, end) {
var h = hue((start = cubehelix$2(start)).h, (end = cubehelix$2(end)).h),
s = nogamma(start.s, end.s),
l = nogamma(start.l, end.l),
opacity = nogamma(start.opacity, end.opacity);
return function(t) {
start.h = h(t);
start.s = s(t);
start.l = l(Math.pow(t, y));
start.opacity = opacity(t);
return start + "";
};
}
cubehelix.gamma = cubehelixGamma;
return cubehelix;
})(1);
}
var cubehelix$1 = cubehelix(hue);
var cubehelixLong = cubehelix(nogamma);
export { cubehelixLong, cubehelix$1 as default };
//# sourceMappingURL=cubehelix.js.map