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

#4 User is offline   howRU 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 29-July 13

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?
[url="www.rmt-co.jp/27_ro.html"]RO RMT[/url]
[url="www.rmt-wm.com/games/0005.html"]FF11 RMT[/url]
0

#5 User is offline   DietKart 

  • New Member
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 04-September 13
  • 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

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