Stroke width 0 versus Stroke paint --> No paint

General discussions about Inkscape.
User avatar
Grobe
Posts: 411
Joined: Tue Feb 02, 2010 2:20 am

Stroke width 0 versus Stroke paint --> No paint

Postby Grobe » Wed Sep 14, 2011 11:27 pm

Hi.

I just wonder about this.

Assume I draw two identical :tool_ellipse: . Both have a fill color and a stroke color and a given stroke width > 0.

Then I make the :tool_ellipse: 1 have a stroke width = 0, and :tool_ellipse: 2 having the stroke paint (fill'n stroke dialog box) to No paint.

Will there then be any difference between :tool_ellipse: 1 and :tool_ellipse: 2? Will they behave slightly different in any way?
:lol:

User avatar
RobA
Posts: 335
Joined: Fri Aug 10, 2007 1:22 am

Re: Stroke width 0 versus Stroke paint --> No paint

Postby RobA » Thu Sep 15, 2011 12:59 am

If I recall, stroke-width:0 should be treated as stroke:none according to the SVG standards, but not all implementations do this, instead treating it as a hairline stroke (1px) regardless of the zoom level.

-Rob A>

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Stroke width 0 versus Stroke paint --> No paint

Postby brynn » Fri Sep 16, 2011 4:17 am

Well I certainly don't understand the technical side of Inkscape. :lol:
But I can say that I've never noticed any differences. Although I probably haven't actually used a stroke with zero width very much.

User avatar
BobSongs
Posts: 324
Joined: Fri Sep 14, 2007 2:18 pm
Location: Montreal, Canada

Re: Stroke width 0 versus Stroke paint --> No paint

Postby BobSongs » Fri Sep 16, 2011 5:41 am

Technically, I think the ellipse is drawn using slightly different code.

Practically, I think both circles end up on screen with the same actual data.


Return to “General Discussions”