You can combine 2 canvas elements onto 1 or the third canvas element by using drawImage().
About the drawImage method :
- This method is used when you want to use images on the canvas.
- The drawImage method can also draw parts of an image, and/or increase/reduce the image size and can take up to nine parameters, depending on what you want to do with the image.
- The image object can be an image, a video, or another canvas element.
This is an Example of using drawImage() with 2 canvas Element
var can = document.getElementById('canvas'); var ctx = can.getContext('2d'); var can2 = document.getElementById('canvas2'); var ctx2 = can2.getContext('2d'); ctx2.drawImage(can, 0, 0);