Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for professional graphic designers and non-designers trying to do their own graphic design. It's 100% free, no registration required.

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?

two arrows. the second is on a darker background and its arrow tip is the wrong color

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

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.

enter image description here

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).

share|improve this answer
    
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
1  
See 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.