Search code examples
kineticjs

Remove shadow in KineticJS


Is there a way to remove the applied shadow from Kinetic.Shape? unfortunately shape.setShadow(null) doesn't work.


Solution

  • Set the shadow color's alpha component to 0 (e.g.):

    shape.setShadow({color: 'rgba(80, 80, 80, 0)'})