Jump to content


Photo

Kineticjs


  • Please log in to reply
4 replies to this topic

#1 paul.pick.aluas

paul.pick.aluas

    New Member

  • Members
  • Pip
  • 1 posts

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?

#2 ericdrowell

ericdrowell

    New Member

  • Members
  • Pip
  • 1 posts

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!

#3 NickJohnson

NickJohnson

    Active Member

  • Members
  • PipPip
  • 15 posts
  • Gender:Male

Posted 10 October 2012 - 09:16 PM

"setshadow method" is what you looking for.........

#4 howRU

howRU

    New Member

  • Members
  • Pip
  • 2 posts

Posted 29 July 2013 - 10:59 PM

Microsoft Games for Windows is a redistFF11 RMTributable and free software packet that contains diverse games forRO RMT Windows - LIVE. Microsoft Games for Windows is a completely free application. What are you waiting for to enjoy the FF11 RMTmost entertaining games directly from your operating system?
RO RMT
FF11 RMT

#5 DietKart

DietKart

    New Member

  • Members
  • Pip
  • 7 posts
  • Gender:Male

Posted 06 November 2013 - 03:17 AM

Alternatively, you can access the Kinetic shape itself to add the shadow later using the standard Canvas attributes

Thanks,
DietKart




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users