A
A
AlphaDMQ2018-07-17 12:58:23
JavaScript
AlphaDMQ, 2018-07-17 12:58:23

How to use js to color an area enclosed within a path in SVG?

Path draws a closed path of various sizes and types. We need to access the area that path has drawn and fill it with any color.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Proskurin, 2018-07-17
@Vlad_IT

path has a fill attribute

I
Interface, 2018-07-17
@Interface

Post a code or demo with a reproduction of the problem - it will be easier. The fill attribute will probably help you as mentioned above plus the fill-rule https://www.sitepoint.com/understanding-svg-fill-r...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question