"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const index = require("../numbers/index.js");
const utils$1 = require("../utils.js");
const utils = require("./utils.js");
const clampRgbUnit = utils$1.clamp(0, 255);
const rgbUnit = Object.assign(Object.assign({}, index.number), { transform: (v) => Math.round(clampRgbUnit(v)) });
const rgba = {
  test: utils.isColorString("rgb", "red"),
  parse: utils.splitColor("red", "green", "blue"),
  transform: ({ red, green, blue, alpha: alpha$1 = 1 }) => "rgba(" + rgbUnit.transform(red) + ", " + rgbUnit.transform(green) + ", " + rgbUnit.transform(blue) + ", " + utils$1.sanitize(index.alpha.transform(alpha$1)) + ")"
};
exports.rgbUnit = rgbUnit;
exports.rgba = rgba;
//# sourceMappingURL=rgba.js.map
