Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (6 sloc) 462 Bytes

title: HTML5 Canvas Shadows Tutorial

To apply shadows with Konva, 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 shadowColor(), shadowOffset(), shadowBlur(), and shadowOpacity() methods.

{% iframe /downloads/code/styling/Shadow.html %}

{% include_code Konva Shadows Demo styling/Shadow.html %}