Jump to content

how to use css3filters plugin?


kidos
 Share

Recommended Posts

can somebody tell me how to use css3filters plugin? let's say blur on a sprite?

 

At the moment I add the .js file to my game I'm getting js error: 

Uncaught TypeError: Cannot set property 'CSS3Filters' of undefined

 

 Thanks in advance.

Link to comment
Share on other sites

  • 2 weeks later...

the css3 filters will only work in webkit browsers (Chrome and Safari) and will affect the entire canvas. As nice as it would be it can't be applied to individual elements drawn on a canvas.

 

I haven't used them myself but I imagine that if you're using webgl then the shaders may do the sort of things you are looking for.

Link to comment
Share on other sites

the css3 filters will only work in webkit browsers (Chrome and Safari) and will affect the entire canvas. As nice as it would be it can't be applied to individual elements drawn on a canvas.

 

I haven't used them myself but I imagine that if you're using webgl then the shaders may do the sort of things you are looking for.

Thanks for the info, I'm using canvas though :)

Is there any solution in canvas to blur single sprite?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...