How to use the stackblur-canvas.imageDataRGB function in stackblur-canvas

To help you get started, we’ve selected a few stackblur-canvas examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github piratefsh / foggy-window / app / components / FoggyWindow.js View on Github external
blur(radius) {
        const imageData = this.context.getImageData(0, 0, this.canvas.width, this.canvas.height);
        const blurred = StackBlur.imageDataRGB(imageData, 0, 0, this.canvas.width, this.canvas.height, radius);
        this.context.putImageData(blurred, 0, 0);
    }
github Anemy / svgurt / src / core / image-manipulator.js View on Github external
function blurImage(imageData, blurAmount, width, height) {
  StackBlur.imageDataRGB(
    imageData,
    0,
    0,
    width,
    height,
    Math.floor(blurAmount)
  );
}

stackblur-canvas

Fast and almost Gaussian blur by Mario Klingemann

MIT
Latest version published 8 months ago

Package Health Score

84 / 100
Full package analysis