Thank you for your help.
Overlap the canvas elements as described above and draw the background image on c1
Would it be possible to install c2 on top of c1 to create a state where the two overlap (the background color of the parent DIV is visible)?
I saw that one canvas is possible with the globalCompositeOperation source-out, but
I have a question because I would like to freely place c2 with absolute attributes.
I think it is possible to place the image in one canvas and implement globalCompositeOperation with xor.
It's not an image, but I hope it will be helpful.
© 2023 OneMinuteCode. All rights reserved.