If I use a cap on a line, usually so I can make an arrow, it is always black despite the stroke color. Is this a bug or am I not understanding something?
From the Inkscape Wiki:
By default, markers are black. You can change their color to match the color of the stroke of the object they are applied to by enabling an effect: Extensions > Modify Path > Color Markers to Match Stroke.
You will have to apply this after you had drawn the line and defined the marker.
For a text based approach we may also edit the resulting .SVG file for a given marker to edit the path style as follows:
<marker
...
<path
...
style="fill-rule:evenodd;stroke:<color>;fill:<color>"
... />
....
</marker>
Replace <color>
with the desired marker color in 6 digit RGB hexadecimal notation (eg. #ff0000 for red).
-
I see... Since I am on Mac OS, I can't use this feature because it requires lxml. >:/ – Wray Bowling Oct 14 '13 at 20:26
-
Now that I'm looking at the SVG spec ( w3.org/TR/SVG11/painting.html#Markers ) can you tell me if you are able to have two different colored lines each with their own color-matched cap? From what I'm seeing, caps never inherit the colors of the lines that use them. This is SVG's fault, not Inkscape's. – Wray Bowling Oct 14 '13 at 20:35
-
1See edit for SVG representation of marker style. Markers are independent of lines, they can have any color for stroke or fill. – Takkat Oct 14 '13 at 20:54
-
I understand, but I wish that it wasn't true. I'd like to recycle caps on many lines where each line can have its own color (and a cap that matches) I'm still investigating if there's a workaround. – Wray Bowling Oct 24 '13 at 13:36
-
Cant test this here atm but the script tool I mentioned above Color Markes to Match Stroke should work on all selected strokes in one go. – Takkat Oct 24 '13 at 14:17