D
D
Daniil Rubcov2019-04-07 11:30:47
Canvas
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)
V
VoidVolker, 2019-04-07
@VoidVolker

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

Y
Yaroslav Sivakov, 2019-04-08
@yar3333

>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