If two partially opaque shapes overlap, can I show only one shape where they overlap?

前端 未结 2 2050
广开言路
广开言路 2021-01-03 01:34

For example if you have a simple \"spy glass\" shape made of a circle and a rectangle and the outlines of both are partially transparent, can you stop the opacity effectivel

2条回答
  •  一生所求
    2021-01-03 02:18

    If the shape is constructed as a single SVG path element, the overlaps don't sum up into a darker result.

    If the shape is constructed of multiple SVG elements, the overlaps do sum up into a darker result.

    
    
    
        
    
    
    
        
        
    
    
    

提交回复
热议问题