Skip to content Skip to sidebar Skip to footer

Speed Up Canvas With Webgl Or Webworkers?

I'm creating a blurred background from an image in canvas with this script: http://www.quasimondo.com/BoxBlurForCanvas/FastBlur2Demo.html You can see a demo on my page here: http:/

Solution 1:

Maybe have a look at Pixi.js it is a library that wraps canvas and will use either the 2D context or the WebGL context based on browser capabilities. It has a built in Blur Filter that could possibly achieve the effect you are after http://www.goodboydigital.com/pixijs/docs/classes/BlurFilter.html

If you are working with WebKit based browsers there is a draft implementation of CSS filters that should be fast https://developer.mozilla.org/en-US/docs/Web/CSS/filter

Post a Comment for "Speed Up Canvas With Webgl Or Webworkers?"