S
S
Sergey Suntsev2016-09-30 11:31:17
JavaScript
Sergey Suntsev, 2016-09-30 11:31:17

How to change rendering of images to ready-made images in canvas?

I found an interesting animation on the Internet, where the filled circles randomly move and collide with each other and with the walls.
I have never worked with canvas technology before.
Idea: change the drawing of the figures to the finished images and so that they move in the same way.
Animation here codepen.io
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Korotaev, 2016-09-30
@GreyCrew

codepen.io/anon/pen/yaokzo?editors=1010 - done, what has been done:
loading images through promises when the
promises have worked, starting the drawing, the
code for drawing circles has been replaced with drawing pictures

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question