{"version":3,"file":"premultiply.cjs","sources":["../../../../../../../../../.yarn/berry/cache/chroma-js-npm-3.2.0-d5c39f5077-10c0.zip/node_modules/chroma-js/src/ops/premultiply.js"],"sourcesContent":["import Color from '../Color.js';\n\nColor.prototype.premultiply = function (mutate = false) {\n    const rgb = this._rgb;\n    const a = rgb[3];\n    if (mutate) {\n        this._rgb = [rgb[0] * a, rgb[1] * a, rgb[2] * a, a];\n        return this;\n    } else {\n        return new Color([rgb[0] * a, rgb[1] * a, rgb[2] * a, a], 'rgb');\n    }\n};\n"],"names":[],"mappings":";;AAEA,MAAM,UAAU,cAAc,SAAU,SAAS,OAAO;AACpD,QAAM,MAAM,KAAK;AACjB,QAAM,IAAI,IAAI,CAAC;AACf,MAAI,QAAQ;AACR,SAAK,OAAO,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,CAAC;AAClD,WAAO;AAAA,EACX,OAAO;AACH,WAAO,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,CAAC,GAAG,KAAK;AAAA,EACnE;AACJ;","x_google_ignoreList":[0]}