19 lines
631 B
Python
19 lines
631 B
Python
from map import Map
|
|
# from PIL import Image, ImageDraw
|
|
|
|
slides = []
|
|
|
|
if __name__ == "__main__":
|
|
max_scale = 32
|
|
max_lacunarity = 100
|
|
width=150
|
|
height=50
|
|
for lacunarity in range(1,max_lacunarity):
|
|
lacunarity = lacunarity/100
|
|
print("Lacunarity: "+str(lacunarity))
|
|
map = Map(scale=32, base=1, width=width, height=height, lacunarity=lacunarity)
|
|
map.generateMap()
|
|
slides.append(map.saveWorld())
|
|
|
|
slides[0].save("zoom_base1_zoom"+str(max_scale)+"_lacunarity"+str(max_lacunarity)+"_width"+str(width)+"_height"+str(height)+".gif", save_all=True, append_images=slides[1:], optimize=True, duration=40, loop=0)
|