shadow$provide.module$node_modules$pixi_DOT_js$lib$rendering$renderers$canvas$utils$canUseNewCanvasBlendModes = function(global, require, module, exports) {
  function createColoredCanvas(color) {
    const canvas = adapter.DOMAdapter.get().createCanvas(6, 1), context = canvas.getContext("2d");
    context.fillStyle = color;
    context.fillRect(0, 0, 6, 1);
    return canvas;
  }
  var adapter = require("module$node_modules$pixi_DOT_js$lib$environment$adapter");
  "use strict";
  let canUseNewCanvasBlendModesValue;
  exports.canUseNewCanvasBlendModes = function() {
    if (void 0 !== canUseNewCanvasBlendModesValue) {
      return canUseNewCanvasBlendModesValue;
    }
    try {
      const magenta = createColoredCanvas("#ff00ff"), yellow = createColoredCanvas("#ffff00"), context = adapter.DOMAdapter.get().createCanvas(6, 1).getContext("2d");
      context.globalCompositeOperation = "multiply";
      context.drawImage(magenta, 0, 0);
      context.drawImage(yellow, 2, 0);
      const imageData = context.getImageData(2, 0, 1, 1);
      if (imageData) {
        const data = imageData.data;
        canUseNewCanvasBlendModesValue = 255 === data[0] && 0 === data[1] && 0 === data[2];
      } else {
        canUseNewCanvasBlendModesValue = !1;
      }
    } catch (_error) {
      canUseNewCanvasBlendModesValue = !1;
    }
    return canUseNewCanvasBlendModesValue;
  };
};

//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$rendering$renderers$canvas$utils$canUseNewCanvasBlendModes.js.map
