Fill SVG element with a repeating linear gradient color

后端 未结 2 940
情深已故
情深已故 2021-02-14 08:40

I have an SVG element - a rectangle.

Now, to color this element, I use fill attribute that works with any color.

Now, I am trying to give it a strip

2条回答
  •  自闭症患者
    2021-02-14 09:23

    http://jsfiddle.net/mcab43nd/1/ - solution is here

    Thanks to Lars and AmeliaBR

    Here is the code

    
    
    
       
         
         
       
    
       
    
    
    
    
    

提交回复
热议问题