Last active
January 14, 2018 18:11
-
-
Save Solonarv/2bf0f1ff1cab38490e7ca1b21a438219 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print ("Assembling strips...") | |
for siy in range (0, 10): | |
mapstrip = image.new("RGB", (5000, 500)) | |
for six in range (0, 10): | |
mapstrip.paste(image.open("{}{}y{}.png".format(regiondirname, six, siy)), (500*six, 0)) | |
mapstrip.save("strip{}.png".format(siy)) | |
print ("Assembling full map...") | |
worldmap = image.new("RGB", (5000, 5000)) | |
for sin in range(0, 10): | |
worldmap.paste(image.open("strip{}.png".format(sin)), (0, 500*sin)) | |
worldmap.save("{}.png".format(world)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment