{"version":3,"file":"lch2lab.mjs","sources":["../../../../../../../../../node_modules/chroma-js/src/io/lch/lch2lab.js"],"sourcesContent":["import { unpack, DEG2RAD } from '../../utils/index.js';\nconst { sin, cos } = Math;\n\nconst lch2lab = (...args) => {\n    /*\n    Convert from a qualitative parameter h and a quantitative parameter l to a 24-bit pixel.\n    These formulas were invented by David Dalrymple to obtain maximum contrast without going\n    out of gamut if the parameters are in the range 0-1.\n\n    A saturation multiplier was added by Gregor Aisch\n    */\n    let [l, c, h] = unpack(args, 'lch');\n    if (isNaN(h)) h = 0;\n    h = h * DEG2RAD;\n    return [l, cos(h) * c, sin(h) * c];\n};\n\nexport default lch2lab;\n"],"names":["sin","cos"],"mappings":";;;AACA,MAAM,OAAEA,KAAG,OAAEC,KAAG,EAAE,GAAG,IAAI;;AAEpB,MAAC,OAAO,GAAG,CAAC,GAAG,IAAI,KAAK;AAC7B;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC;AACvC,IAAI,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC;AACvB,IAAI,CAAC,GAAG,CAAC,GAAG,OAAO;AACnB,IAAI,OAAO,CAAC,CAAC,EAAEA,KAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAED,KAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACtC;;;;","x_google_ignoreList":[0]}