SVG path with gradient

后端 未结 1 804
予麋鹿
予麋鹿 2021-01-27 09:35

Currently, I have a script (through .py plug-ins in GIMP) that can generate an SVG path with a gradient (emulated by having multiple paths of the same path of varying widths and

1条回答
  •  长发绾君心
    2021-01-27 10:02

    It is not completely impossible, but you are restricted to pretty elementary cases and you have to jump through some pretty complicated hoops.

    SVG knows only two types of gradients: linear and radial. You can align a linear gradient with a straight line, and a radial gradient with a circle or an arc with equal axis.

    So you will need to cut up every path into individual segments and, if you need to connect straight lines, convert lines to polygons to provide for corners.

    
      
        
           
           
           
           
           
           
           
           
           
        
        
        
        
        
        
      
      
      
      
      
      
    

    0 讨论(0)
提交回复
热议问题