1.0.0 • Published 5 years ago
stack-blur-to-url v1.0.0
stackBlurToUrl
The core code comes from here http://www.quasimondo.com/StackBlurForCanvas/StackBlurDemo.html
Install
Install with npm
$ npm install stackBlurToUrl
Or install with yarn
$ yarn add stackBlurToUrl
import stackBlurToUrl from 'stackBlurToUrl';
Or umd builds are also available
<script src="path/to/stackBlurToUrl.js"></script>
Will expose the global variable to window.stackBlurToUrl
.
Usage
// Only need image address and blur radius
stackBlurToUrl('./banner.png', 100).then(url => {
console.log(url);
});
License
MIT © Harvey Zack
1.0.0
5 years ago