define(["require", "exports", "tslib", "./_rgbaOrHexString"], function (require, exports, tslib_1, _rgbaOrHexString_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    /**
     * Gets a color with the given alpha value and the same other components as `color`.
     * Does not modify the original color.
     */
    function updateA(color, a) {
        return tslib_1.__assign({}, color, { a: a, str: _rgbaOrHexString_1._rgbaOrHexString(color.r, color.g, color.b, a, color.hex) });
    }
    exports.updateA = updateA;
});
//# sourceMappingURL=updateA.js.map