"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const color = require("./src-color.cjs");
const color$1 = require("../d3-color/src-color.cjs");
const interpolateRgb = (function rgbGamma(y) {
  var color$2 = color.gamma(y);
  function rgb(start, end) {
    var r = color$2((start = color$1.rgb(start)).r, (end = color$1.rgb(end)).r), g = color$2(start.g, end.g), b = color$2(start.b, end.b), opacity = color.default(start.opacity, end.opacity);
    return function(t) {
      start.r = r(t);
      start.g = g(t);
      start.b = b(t);
      start.opacity = opacity(t);
      return start + "";
    };
  }
  rgb.gamma = rgbGamma;
  return rgb;
})(1);
exports.default = interpolateRgb;
//# sourceMappingURL=src-rgb.cjs.map
