gaussian-blur
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

gaussian-blur

Test Dependency Status

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

Package Sidebar

Install

npm i gaussian-blur

Weekly Downloads

8

Version

0.0.3

License

MIT

Unpacked Size

35.1 kB

Total Files

11

Last publish

Collaborators

  • amilajack