Simple fill pattern in svg : diagonal hatching

后端 未结 11 1847
轮回少年
轮回少年 2020-12-04 08:28

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

11条回答
  •  执笔经年
    2020-12-04 09:07

    SVG 2 has a hatch entity for specifically this purpose. From that page's example section:

    
      
    
    

    This is a very easily configurable way to create hatches:

    Furthermore the hatch path can also be customised:

    
    

提交回复
热议问题