Skip to content

Instantly share code, notes, and snippets.

@Solonarv
Last active January 14, 2018 18:11
Show Gist options
  • Save Solonarv/2bf0f1ff1cab38490e7ca1b21a438219 to your computer and use it in GitHub Desktop.
Save Solonarv/2bf0f1ff1cab38490e7ca1b21a438219 to your computer and use it in GitHub Desktop.
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