Skip to content

lepture/gaussian-blur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gaussian-blur

Gaussian blur effect for images.

Build Status Coverage Status

Installation

Install with component(1):

$ component install lepture/gaussian-blur

API

var gaussian = require('gaussian-blur')
gaussian(document.getElementsByTagName('img')[0])

NOTICE: make sure that image is loaded. For example:

img.onload = function() {
    gaussian(img)
}

This blur function accept two parameters: image and deviation.

gaussian(img, 1)

The return value has a deviation method for you to change the deviation.

var svg = gaussian(img)
svg.deviation(2)

Thanks

This project is totally inspired by jQuery Gaussian Blur.

License

MIT

About

Gaussian blur effect for images.

Resources

Stars

Watchers

Forks

Packages

No packages published