HTML5 Canvas KineticJS Shadows

To apply shadows with KineticJS, we can set the shadowColor, shadowOffset, shadowBlur, and shadowOpacity properties when we instantiate a shape.  We can adjust the shadow properties after instantiation by using the setShadowColor(), setShadowOffset(), setShadowBlur(), and setShadowOpacity() methods.

Open in new window

Code Editor

Modified on April 9th, 2013 by Eric Rowell
comments powered by Disqus