@macrostrat/column-components
Version:
React rendering primitives for stratigraphic columns
14 lines (13 loc) • 341 B
JavaScript
import { DEG2RAD } from "../../utils/index.js";
import unpack from "../../utils/unpack.js";
const { sin, cos } = Math;
const lch2lab = (...args) => {
let [l, c, h] = unpack(args, "lch");
if (isNaN(h)) h = 0;
h = h * DEG2RAD;
return [l, cos(h) * c, sin(h) * c];
};
export {
lch2lab as default
};
//# sourceMappingURL=lch2lab.js.map