Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.07 KB

README.md

File metadata and controls

45 lines (34 loc) · 1.07 KB

gaussian-blur

Test

Optimized separable gaussian blurs for GLSL. This is adapted from Efficient Gaussian Blur with Linear Sampling.

demo

Installation

npm install gaussian-blur

Usage

import Blur from 'gaussian-blur';

const img = new Image();
img.src = imgSrc;

const canvas = document.querySelector("canvas");
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;

const blur = new Blur(canvas, img);
blur.draw(2);

Running examples

git clone https://github.com/amilajack/gaussian-blur
cd gaussian-blur
yarn
# Run the example
yarn start
# Build the lib
yarn build

Related