Just as the question asks - I'm trying to figure out whether or not it's possible to use some kind of pattern or repeated background image for the stroke of an SVG path.
Is this doable? Or are you limited to colors only?
TIA!
Just as the question asks - I'm trying to figure out whether or not it's possible to use some kind of pattern or repeated background image for the stroke of an SVG path.
Is this doable? Or are you limited to colors only?
TIA!
You can use a
<pattern>
as a stroke e.g.The pattern can contain
<svg>
drawing elements or (as here) an image, or both.You can use the property
stroke-dasharray
for "patterns" in the stroke:With this you can specify the length of strokes and gaps between. For some examples have a look at the MDN example page.