@macrostrat/column-components
Version:
React rendering primitives for stratigraphic columns
17 lines (16 loc) • 415 B
JavaScript
;
require("../io/lab/index.cjs");
const index = require("./index.cjs");
const Color = require("../Color.cjs");
const lab = (col1, col2, f) => {
const xyz0 = col1.lab();
const xyz1 = col2.lab();
return new Color(
xyz0[0] + f * (xyz1[0] - xyz0[0]),
xyz0[1] + f * (xyz1[1] - xyz0[1]),
xyz0[2] + f * (xyz1[2] - xyz0[2]),
"lab"
);
};
index.lab = lab;
//# sourceMappingURL=lab.cjs.map