change background color of half circle in svg

后端 未结 2 749
-上瘾入骨i
-上瘾入骨i 2021-01-26 07:05

i want to create First and third quarter moon on this svg code


    

        
2条回答
  •  Happy的楠姐
    2021-01-26 07:15

    There are a number of ways you could do it. Other than making a half-circle in a vector editor of course.

    The simplest may be to use a clipPath. We take a copy of the circle, but filled with black. Then we cut off half of it.

    
      
        
          
        
        
          
        
      
      
          
          
     
    

提交回复
热议问题