A
A
Artem2019-01-27 03:42:48
JavaScript
Artem, 2019-01-27 03:42:48

How to fill svg shape in canvas?

There is a figure. Conditionally map of the country in svg.
Which way to dig to fill this shape with dynamic elements? Those. so that you can handle mouse movement events, e.g.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-01-27
@NeiroNx

Canvas is a static element. Modern browsers support inserting the svg tag directly into the document. That's when it will be possible to access it from JS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question