P
P
Pipop2020-02-18 17:22:57
JavaScript
Pipop, 2020-02-18 17:22:57

How to draw multiple canvases on one page?

How to modify the code so that you can insert several of these lights on the page? https://codepen.io/GunAlv/pen/JjdKJrR My attempts failed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2020-02-18
@Pipop

Wrap the code in a class and create as many instances as needed.
https://jsfiddle.net/zx7dqjfp/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question