Filling an SVG path with multiple colors

前端 未结 2 717
孤街浪徒
孤街浪徒 2020-12-18 04:18

I have a map of provinces of a country as an SVG, where each province is an SVG path. The actual SVG is the following province map.

What I would like to do is fill a

2条回答
  •  無奈伤痛
    2020-12-18 04:35

    I think you would be able to use a linear gradient and use two color-stops for each solid color. Something like this

    
      
        
          
          
          
          
          
          
        
      
      
    

提交回复
热议问题