-
Closed this issue · 2 comments
You need the copy of stackblur.js
(or stackblur.min.js
) in the dist
folder.
Closing as that should resolve, but feel free to comment further.
targetCanvas
means, as per the README, "the HTMLCanvasElement
or its id
."; it is not a reference to an actual global variable. The reason canvas
works is because you have an ID "canvas" and HTML exposes these as globals. But it is not considered good practice to rely on this. It is better to use document.getElementById
or document.querySelector
to find your canvas element and then you can supply it to canvasRGBA
.
You also have to have something drawn on the canvas.
I suggest your taking a look at the demo file and working with that.
For further support questions, you can use a site like https://stackoverflow.com .