Change color of individual lines between points?

Asked by William Wayman on 2017-09-29

I'd like to be able to change the color of a line/segment between points/nodes on a path. Removing a segment between two nodes is useless if I have to remove more than one segment. I would open a suggestion, but I don't want it confused as a bug. Faking it is rather cumbersome, and I think this feature would be quite useful.

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
2017-09-29
Last reply:
2017-09-29
Hachmann (marenhachmann) said : #1

The only way I see that this could be achieved would be via a new type of Path Effect.
I assume that you still want to be able to edit the path and move the nodes.

SVG paths can only have a single color (or gradient - might help if your line is straight, or pattern) on their stroke, if you want more, you need to make more paths. A path effect could fake that for you (i.e. split on all nodes, and allow you to set separate colors for each segment). I'm not sure how many people would actually need this, though, so if you decide to make a feature request, be sure to explain your use case.

The fastest, currently possible way of doing this would be:
- make path, adjust its shape and the position of the nodes until you're happy
- with node tool active, select all nodes (either with mouse, or by hitting Ctrl+A when object is selected)
- click on 'split nodes' or hit Shift+B
- break path apart (Shift+Ctrl+K)
- color segments

Hachmann (marenhachmann) said : #2

(the bug tracker is for both feature requests and bugs)

Can you help with this problem?

Provide an answer of your own, or ask William Wayman for more information if necessary.

To post a message you must log in.