5

How can I draw a two-color, dashed line in Inkscape?

The only possibility I see is to draw a colored/transparent line.

1
  • Have you tried your proposed method? What else have you tried? May we see examples?
    – Manly
    Commented Jun 7, 2016 at 14:59

1 Answer 1

5

Dashed strokes are effectively part stroke and part non-stroke (transparent).

2 possibilities for 2 color stroke:

  1. Duplicate the stroke, and group both together. Set the lower stroke in one color, and the upper stroke to dashed style, and another color.
  2. Use only 1 stroke, and set the stroke fill to gradient or (custom) pattern.
1
  • You can use the same dash style for both, and use offset on one to make them alternate: i.imgur.com/KAY5gXW.png
    – endolith
    Commented Mar 25, 2021 at 18:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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