From: Marcus Str. Date: Sun, 22 Dec 2024 17:03:48 +0000 (+0100) Subject: Correction in completion image code X-Git-Url: https://marstr.online/code/gitweb.cgi?a=commitdiff_plain;h=59cae087a45752165f71567639d33002bbccf1a1;p=marstr%2Forthographic.git Correction in completion image code --- diff --git a/photogen.py b/photogen.py index d5c8035..5b3f573 100644 --- a/photogen.py +++ b/photogen.py @@ -87,13 +87,13 @@ class mstr_photogen: edn = self.find_earthnavdata_number() edns = self.latlng_folder(edn) - cmpl_ptc = Image.open(mstr_datafolder + "textures/tile/completion/ptc.png") - cmpl_brd = Image.open(mstr_datafolder + "textures/tile/completion/brd.png") + cmpl_ptc = Image.open(mstr_datafolder + "textures/tile/background/ptc.png") + cmpl_brd = Image.open(mstr_datafolder + "textures/tile/background/brd.png") # Generate the source image for p in range(1, 201): - rx = randrange(0 - int(cmpl_ptc.width / 2), ptc_full.width - int(cmpl_ptc.width / 2)) - ry = randrange(0 - int(cmpl_ptc.height / 2), ptc_full.height - int(cmpl_ptc.height / 2)) + rx = randrange(0 - int(cmpl_ptc.width / 2), cmpl.width - int(cmpl_ptc.width / 2)) + ry = randrange(0 - int(cmpl_ptc.height / 2), cmpl.height - int(cmpl_ptc.height / 2)) cmpl.alpha_composite(cmpl_ptc, dest=(rx, ry)) cmpl.alpha_composite(cmpl_brd)