[solved]Can different parts of a path have different strokes

Post questions on how to use or achieve an effect in Inkscape.
dnquark
Posts: 2
Joined: Tue Apr 08, 2008 5:38 am

[solved]Can different parts of a path have different strokes

Postby dnquark » Sat Apr 12, 2008 2:58 pm

Suppose I want a path segment to be stroked differently than the rest of the path -- different color or dashed, etc. Can I do that?

If I can't do that with a single path, what would be the best way to get the desired effect using other methods?

Thanks.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Can different parts of a path have different strokes?

Postby microUgly » Sat Apr 12, 2008 8:45 pm

No, you can't make different segments of a single path appear differently. The only real way around this is by creating a new path for each line that needs to be different. If you need to just change colours, then you might be able to use gradient to change a path colour.

dnquark
Posts: 2
Joined: Tue Apr 08, 2008 5:38 am

Re: Can different parts of a path have different strokes?

Postby dnquark » Mon Apr 14, 2008 10:30 am

Okay, but if you use multiple paths, how can you control the fill of the object? For instance, I have something like a deformed rectangle, where every side is a curve. However, I want its right side to be stroked differently (or not at all). But if I delete that path segment, the fill is bounded by a straight line that connects the edges.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Can different parts of a path have different strokes?

Postby microUgly » Mon Apr 14, 2008 10:37 am

Basically, you have fake it. You need to draw another object specifically for the purpose of filling it with colour.

EDIT: I should say, :tool_paintbucket: makes this easy.

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: Can different parts of a path have different strokes?

Postby sas » Mon Apr 14, 2008 10:04 pm

dnquark wrote:Okay, but if you use multiple paths, how can you control the fill of the object?

One way of doing it would be to start with a single path with the desired fill, duplicate it, remove the fill from the top one, remove the stroke from the bottom one, and then go about splitting the top one into multiple paths.


Return to “Help with using Inkscape”