summaryrefslogtreecommitdiff
path: root/test.html
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-04-22 05:21:11 -0400
committerJules Laplace <jules@okfoc.us>2015-04-22 05:21:11 -0400
commitbef106de9fa827d983fa319cecdf688c2822efb9 (patch)
treed336ec726e97e5c19cb0dfee56d2bf4912d0db29 /test.html
smartblur convolution experiment
Diffstat (limited to 'test.html')
-rw-r--r--test.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/test.html b/test.html
new file mode 100644
index 0000000..38aac26
--- /dev/null
+++ b/test.html
@@ -0,0 +1,21 @@
+<style>
+canvas { display: inline-block; }
+</style>
+<body></body>
+<script src="convolve.js"></script>
+<script src="smartblur.js"></script>
+<script src="fetch.js"></script>
+<script>
+
+var url = 'img/orange-01.jpg'
+var smart_blur = new SmartBlurFilter ()
+
+fromImage(url, function(src){
+ var dest = document.createElement("canvas")
+ var blurred = smart_blur.blur(src, dest)
+ document.body.appendChild(src)
+ document.body.appendChild(blurred)
+})
+
+</script>
+