Search code examples
htmlcreatejs

How to add glow effect to createjs Shape?


Is it possible to add glow effect to a shape dynamically? as its easy to do so with AS3, I wonder if its supported with easejs?


Solution

  • You can use a Canvas Shadow with 0 offset to achieve this. http://www.createjs.com/Docs/EaselJS/classes/Shadow.html

    Note that shadow effects are fairly expensive to draw, and can prevent hardware acceleration.

    Cheers.

    [EDIT: Looks like shadow blur does not currently work with Chrome (Mac and PC) when using images.]