Svg fill-rule | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Svg fill-rule

how can I handle svg fill-rule WHEN THERE ARE SOME PATHS INSIDE OTHERS!?

9th May 2020, 6:18 PM
shirin mirafzal
shirin mirafzal - avatar
2 Answers
+ 4
I figured it out that if 2 pathes overlap but take opposite directions, then you may use fill atribute to color between them and avoid black out in that area. and also if a path tag comes next, then it will cover the overlaping area.
16th May 2020, 11:06 AM
shirin mirafzal
shirin mirafzal - avatar
+ 2
There is a trick when u want to get the code of an svg drawing: Draw whatever u want in "inkscape" and then open the resulting file in notepad or any similar program And voilaa
9th May 2020, 7:06 PM
Mohamed Medkar