D
D
Denis T2020-06-01 08:30:10
JavaScript
Denis T, 2020-06-01 08:30:10

How to create multiple canvas instances?

Good afternoon!

I use the following code from an article on the site for a visual effect.

There was a need to add several canvas tags to the site and make such an effect in each.
Can you tell me how to implement this using the code from the article?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2020-06-01
@HistoryART

You create several instances of objects and assign them to several canvases, or better to a class and use it on all canvases.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question