Effect like inner glow in html5 canvas?

4.1k Views Asked by At

Is there a good way to add an effect like the Photoshop "Inner Glow" effect to an html5 canvas element? I'd prefer it to be without libraries like jQuery or MooTools, but if it's necessary, I'm willing to take a look at them.

1

There are 1 best solutions below

1
On

You can use this css3 property box-shadow:inset 0 0 10px #000000; The most important attribute here is inset which means inner shadows. You can change other property of attributes as you wish.