How would I fill an SVG shape, not with a single colour, an image or a gradient, but with a hatching pattern, diagonal if possible.
It\'s been 2 hours and I\'ve foun
This code from http://bl.ocks.org/jfsiii/7772281 seems very clean and reusable:
svg { width: 500px; height: 500px; } rect.hbar { mask: url(#mask-stripe) } .thing-1 { fill: blue; } .thing-2 { fill: green; }
SVG colored patterns via mask