edn = self.find_earthnavdata_number()\r
edns = self.latlng_folder(edn)\r
\r
- cmpl_ptc = Image.open(mstr_datafolder + "textures/tile/completion/ptc.png")\r
- cmpl_brd = Image.open(mstr_datafolder + "textures/tile/completion/brd.png")\r
+ cmpl_ptc = Image.open(mstr_datafolder + "textures/tile/background/ptc.png")\r
+ cmpl_brd = Image.open(mstr_datafolder + "textures/tile/background/brd.png")\r
\r
# Generate the source image\r
for p in range(1, 201):\r
- rx = randrange(0 - int(cmpl_ptc.width / 2), ptc_full.width - int(cmpl_ptc.width / 2))\r
- ry = randrange(0 - int(cmpl_ptc.height / 2), ptc_full.height - int(cmpl_ptc.height / 2))\r
+ rx = randrange(0 - int(cmpl_ptc.width / 2), cmpl.width - int(cmpl_ptc.width / 2))\r
+ ry = randrange(0 - int(cmpl_ptc.height / 2), cmpl.height - int(cmpl_ptc.height / 2))\r
cmpl.alpha_composite(cmpl_ptc, dest=(rx, ry))\r
cmpl.alpha_composite(cmpl_brd)\r
\r