I am writing an html5 canvas game, I can not figure out how the generation of such cards is performed. All maps are of different size and scale. Explain to the teapot at least in a nutshell how it works.

enter image description here

0