Make big image fit to canvas
Hi everyone, I'm trying to create a scratch effect using canvas.
I'm having problems understanding how to make the "hidden" pic to behave like an
https://codepen.io/n00bCod3r/pen/gbYwxBY Just hold LMB and scratch the image, you'll see the hidden one appear
I'm having problems understanding how to make the "hidden" pic to behave like an
object-fit: cover would... I know that I probably have to scale it, but I don't understand how. (https://stackoverflow.com/questions/23104582/scaling-an-image-to-fit-on-canvas)https://codepen.io/n00bCod3r/pen/gbYwxBY Just hold LMB and scratch the image, you'll see the hidden one appear
