is it possible to create a circle with no border?

1,369 views
Skip to first unread message

aj3423

unread,
Aug 19, 2010, 1:29:48 AM8/19/10
to Raphaël
hi,

I'm new to Raphael, I found there's a black border around the circles,
when the radius is small, the border becomes unlovely, is it able to
remove it?

var c = paper.circle(10, 10, 2);
c.attr('fill', '#f00');

see there's a black border around the red circle.

Thanks.

Shawn

unread,
Aug 19, 2010, 6:21:09 AM8/19/10
to raph...@googlegroups.com
Have you tried removing the stroke?

c.attr({
'stroke-width' : 0,
'stroke" : "#fff"
});

Of course, change the stroke color if/as needed. I haven't tried
"transparent" yet for that value.

This is a guess on my part, but would seem to be the logical approach.
/disclaimer

Shawn

dmitry.ba...@gmail.com

unread,
Aug 19, 2010, 6:24:53 AM8/19/10
to Raphaël
c.attr({fill: "#f00", stroke: "none"});

aj3423

unread,
Aug 19, 2010, 6:28:22 AM8/19/10
to raph...@googlegroups.com
yeah that's it, Thanks!

2010/8/19, dmitry.ba...@gmail.com <dmitry.ba...@gmail.com>:

> --
> 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 at
> http://groups.google.com/group/raphaeljs?hl=en-GB.
>
>

Lachlan Hardy

unread,
Aug 19, 2010, 6:35:34 AM8/19/10
to raph...@googlegroups.com
The stroke is there by default so that the first time you ever draw a
shape, you can see it worked ;)
Reply all
Reply to author
Forward
0 new messages