Daniil Rubcov2019-04-07 11:30:47
Daniil Rubcov, 2019-04-07 11:30:47

2 images on 1 canvas?

loadImage('base/citSample/skil.png').then((image) => {
ctx.drawImage(image, 0, 0, 650, 650) - I create the main image
. pixels?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
VoidVolker, 2019-04-07

In the same way, load and draw in the desired coordinates.

Yaroslav Sivakov, 2019-04-08

>drawImage... - I create the main image
Correctly: I draw the first image. After that, you can load and draw the second one with the same `ctx.drawImage` function.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question