{"version":3,"file":"lab.cjs","sources":["../../../../../../../../../.yarn/berry/cache/chroma-js-npm-3.2.0-d5c39f5077-10c0.zip/node_modules/chroma-js/src/interpolator/lab.js"],"sourcesContent":["import '../io/lab/index.js';\nimport index from './index.js';\nimport Color from '../Color.js';\n\nconst lab = (col1, col2, f) => {\n    const xyz0 = col1.lab();\n    const xyz1 = col2.lab();\n    return new Color(\n        xyz0[0] + f * (xyz1[0] - xyz0[0]),\n        xyz0[1] + f * (xyz1[1] - xyz0[1]),\n        xyz0[2] + f * (xyz1[2] - xyz0[2]),\n        'lab'\n    );\n};\n\n// register interpolator\nindex.lab = lab;\n\nexport default lab;\n"],"names":[],"mappings":";;;;AAIA,MAAM,MAAM,CAAC,MAAM,MAAM,MAAM;AAC3B,QAAM,OAAO,KAAK,IAAG;AACrB,QAAM,OAAO,KAAK,IAAG;AACrB,SAAO,IAAI;AAAA,IACP,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,CAAC;AAAA,IAC/B,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,CAAC;AAAA,IAC/B,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,CAAC;AAAA,IAC/B;AAAA,EACR;AACA;AAGA,MAAM,MAAM;","x_google_ignoreList":[0]}