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.
Code Editor
Modified on April 9th, 2013
by Eric Rowell