Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 753 Bytes

File metadata and controls

23 lines (18 loc) · 753 Bytes

Graphics

Filters modules

blur

This method blurs an image with given offset and alpha parameters.

	var blurredImgData = function ( imageData, offset, destImageData, alpha ) { ... }

This functions takes 4 arguments (3rd one is unused, pass undefined (this function requires rework)). The logic of this function is that it draws on top of imageData another imageData with offset passed in function. globalAlpha is set by default to 0.3, but you may pas any other value in parameter alpha. Th is function returns already blurredImgData.

Example

	module.require([
		"blur	:: blur"
	], function (blur) {
		var blurredImgData = blur(someImageData, 1, undefined, 0.4);
		//blurredImgData contains blurred image
	});