O'Reilly Forums: Kineticjs - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Kineticjs KineticJS library for HTML5 Canvas

#1 User is offline   paul.pick.aluas 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 10-May 12

Posted 10 May 2012 - 10:59 AM

How do you add a shadow to a shape in KineticJS? I would like to have draggable shapes with shadows.

(1) Do I have to create a second shape to act as a shadow and have that move as well?

(2) Alternatively, how do you access the Kinetic shape itself to add the shadow later using the standard Canvas attributes?
0

#2 User is offline   ericdrowell 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 27-May 12

Posted 27 May 2012 - 08:35 AM

You can set the shadow property in the config object, or you can use the setShadow method. Here's an example:

http://www.html5canv...eticjs-shadows/

Cheers!
0

#3 User is offline   NickJohnson 

  • Active Member
  • PipPip
  • Group: Members
  • Posts: 15
  • Joined: 24-September 12
  • Gender:Male

Posted 10 October 2012 - 09:16 PM

"setshadow method" is what you looking for.........
http://www.expertsfromindia.com/html5-designer.htm
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users