shadow plugin

323 views
Skip to first unread message

christian

unread,
Jan 6, 2010, 3:46:16 PM1/6/10
to Raphaël
hi,

does anybody know how to use the shadow plugin (http://github.com/
DmitryBaranovskiy/raphael/blob/master/plugins/raphael.shadow.js)?

I'd like to display a shadow on a rect for instance.

paper = Raphael('paper', 400, 400);
r = paper.rect(10,10, 40, 30, 5).attr({
fill: '#fff',
stroke: '#000',
'stroke-width': 1
});

how would I do that?

thanks!
christian

mauzer_tim

unread,
Feb 8, 2010, 3:51:08 PM2/8/10
to Raphaël
Thumbs up. I'm interested to know about this as well.

charles thomas

unread,
Feb 8, 2010, 8:40:09 PM2/8/10
to raph...@googlegroups.com
I would be too
The plugin is called
Raphael
.shadow = function (x, y, w, h, options) {
when I was expecting
Raphael.fn.shadow = function (x, y, w, h, options) {
for a function that extends the Canvas...

and theres a method in it called
"this.format" which does not
seem to go anywhere..
Expert or Dmitry?



--- On Mon, 2/8/10, mauzer_tim <tkachen...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Raphaël" group.
To post to this group, send an email to raph...@googlegroups.com.
To unsubscribe from this group, send email to raphaeljs+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/raphaeljs?hl=en-GB.



Instant message from any web browser! Try the new Yahoo! Canada Messenger for the Web BETA

mauzer_tim

unread,
Mar 2, 2010, 4:17:54 AM3/2/10
to Raphaël
After some investigations I found how to use it. Actually this is not
a Raphael's plugin it's just adds an additional constructor that
allows to create canvas with the shadow. Then you can create any
primitivs on this canvas. It might be useful for creating shadowed
menus and windows.

To create a shadowed canvas you have to call this code:

paper = Raphael.shadow(10, 10, 300, 300);


On Feb 9, 4:40 am, charles thomas <charles...@yahoo.com> wrote:
> I would be too
> The plugin is called
> Raphael.shadow = function (x, y, w, h, options) {
> when I was expecting
> Raphael.fn.shadow = function (x, y, w, h, options) {
> for a function that extends the Canvas...
>
> and theres a method in it called "this.format" which does not
> seem to go anywhere..
> Expert or Dmitry?
>

> --- On Mon, 2/8/10, mauzer_tim <tkachenko.i...@gmail.com> wrote:


>
> From: mauzer_tim <tkachenko.i...@gmail.com>
> Subject: Re: shadow plugin
> To: "Raphaël" <raph...@googlegroups.com>
> Received: Monday, February 8, 2010, 12:51 PM
>
> Thumbs up. I'm interested to know about this as well.
>
> --
> You received this message because you are subscribed to the Google Groups "Raphaël" group.
> To post to this group, send an email to raph...@googlegroups.com.

> To unsubscribe from this group, send email to raphaeljs+...@googlegroups.com.


> For more options, visit this group athttp://groups.google.com/group/raphaeljs?hl=en-GB.
>

>       __________________________________________________________________
> Looking for the perfect gift? Give the gift of Flickr!
>
> http://www.flickr.com/gift/

charles thomas

unread,
Mar 2, 2010, 7:01:58 AM3/2/10
to raph...@googlegroups.com
thanks for looking at it.
We are all so busy but a few minutes sharing knowledge, greatly benefits this and other associated communities.
Regards Charles
http://www.irunmywebsite.com/


--- On Tue, 3/2/10, mauzer_tim <tkachen...@gmail.com> wrote:
> To unsubscribe from this group, send email to raphaeljs+unsub...@googlegroups.com.

> For more options, visit this group athttp://groups.google.com/group/raphaeljs?hl=en-GB.
>
>       __________________________________________________________________
> Looking for the perfect gift? Give the gift of Flickr!
>
> http://www.flickr.com/gift/

--
You received this message because you are subscribed to the Google Groups "Raphaël" group.
To post to this group, send an email to raph...@googlegroups.com.
To unsubscribe from this group, send email to raphaeljs+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/raphaeljs?hl=en-GB.



Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail
Reply all
Reply to author
Forward
0 new messages