Gaussian blur effect for images.
Install with component(1):
$ component install lepture/gaussian-blur
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)
This project is totally inspired by jQuery Gaussian Blur.
MIT