How You Can Do Cool Image Effects Using HTML5 Canvas
storminthecastle.com
How You Can Do Cool Image Effects Using HTML5 Canvas
1–8 of 8 posts
Re: How You Can Do Cool Image Effects Using HTML5 Canvas
#2Re: How You Can Do Cool Image Effects Using HTML5 Canvas
#3When image filters came to Flash, they used a technology called PixelBender, which computed the value of each pixel independently and parallelized them on the GPU to maximize performance. There's a similar proposal for CSS that uses WebGL shaders for the parallelizing:
http://www.adobe.com/devnet/html5/articles/css-shaders.html
Opera also has a writeup on doing this in WebGL now without CSS:
Re: How You Can Do Cool Image Effects Using HTML5 Canvas
#4A made a screencast a few months ago which shows how you can move your filtering logic into a web worker so that the main thread doesn't lock up during an intense filter; it goes well together with this article: http://www.youtube.com/watch?v=GDKoh0JDTJs
Re: How You Can Do Cool Image Effects Using HTML5 Canvas
#5You can fill in the filter function to see the effects in real time. You can also get screenshots by clicking the filtered video. It's pretty fun to see what interesting filters you can come up with, and I'm hoping to host an intro to javascript workshop utilizing the demo.
I can't take credit for the idea; I got it from the wonderful Hackers At Berkeley workshop[1]. I am starting a similar club at my university and wanted to do the same kind of workshop. I rewrote the demo because I wanted it to be real time, and I also just wanted the fun of implementing it myself :)
[1] Blog about workshop: http://blog.hackersatberkeley.com/?p=97 Demo: http://introjs.hackersatberkeley.com/
Re: How You Can Do Cool Image Effects Using HTML5 Canvas
#6Re: How You Can Do Cool Image Effects Using HTML5 Canvas
#7If you want to experiment with some filters like this in real time, I made a simple page to work with your webcam like this: http://mizzouacm.github.io/javascript-workshop/ You can fill in the filter function to see the effects in real time. You can also get screenshots by clicking the filtered video. It's pretty fun to see what interesting filters you can come up with, and I'm hoping to host an intro to javascript w…
Re: How You Can Do Cool Image Effects Using HTML5 Canvas
#8(Draw a bit, then play with the "filters" menu. There's also the ability to import other images as layers, but you'd have to sign up for an account to try that, so it's a bit more hassle just for playing with it.)