Jump to content

Blur for Canvas


nonamedude
 Share

Recommended Posts

I've not encountered anything native on canvas that will allow you to do this.

Does it have to be a true Gaussian blur? I can't claim to know the mathematics behind it, but I do know it's expensive to compute, and would involve manipulating the canvas data on a pixel-by-pixel level - likely too slow for real-time game use.

Depending on the scenario, you might be able to fake it. Is there any way you could use Photoshop (or similar) to pre-render any of the blur, and just use canvas to composite the blurred sprites at runtime?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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