def draw_ancientmap_on_file(obj, world, filename, resize_factor=1, sea_color=(212, 198, 169, 255), land_color=(181, 166, 127, 255), draw_biomes=True, draw_rivers=True, draw_mountains=True, draw_outer_land_border=False, verbose=False): wWidth = int(world.width * resize_factor) wHeight = int(world.height * resize_factor) img = PNGWriter.rgba_from_dimensions(wWidth, wHeight, filename) draw_ancientmap(obj, world, img, resize_factor, sea_color, land_color, draw_biomes, draw_rivers, draw_mountains, draw_outer_land_border, verbose) img.complete()
def draw_ancientmap_on_file(obj, world, filename, resize_factor=1, sea_color=(212, 198, 169, 255), draw_biomes=True, draw_rivers=True, draw_mountains=True, draw_outer_land_border=False, verbose=False): wWidth = int(world.width * resize_factor) wHeight = int(world.height * resize_factor) img = PNGWriter.rgba_from_dimensions(wWidth, wHeight, filename) draw_ancientmap(obj, world, img, resize_factor, sea_color, draw_biomes, draw_rivers, draw_mountains, draw_outer_land_border, verbose) img.complete()
def draw_ocean_on_file(ocean, filename): height, width = ocean.shape img = PNGWriter.rgba_from_dimensions(width, height, filename) draw_ocean(ocean, img) img.complete()
def draw_elevation_on_file(world, filename, shadow=True): img = PNGWriter.rgba_from_dimensions(world.width, world.height, filename) draw_elevation(world, shadow, img) img.complete()
def draw_grayscale_heightmap_on_file(world, filename): img = PNGWriter.grayscale_from_array(world.layers['elevation'].data, filename, scale_to_range=True) img.complete()
def draw_riversmap_on_file(world, filename): img = PNGWriter.rgba_from_dimensions(world.width, world.height, filename) draw_riversmap(world, img) img.complete()
def draw_icecaps_on_file(world, filename): img = PNGWriter.grayscale_from_array(world.layers["icecap"].data, filename, scale_to_range=True) img.complete()
def draw_scatter_plot_on_file(world, filename): img = PNGWriter.rgba_from_dimensions(512, 512, filename) draw_scatter_plot(world, 512, img) img.complete()
def draw_precipitation_on_file(world, filename, black_and_white=False): img = PNGWriter.rgba_from_dimensions(world.width, world.height, filename) draw_precipitation(world, img, black_and_white) img.complete()
def draw_temperature_levels_on_file(world, filename, black_and_white=False): img = PNGWriter.rgba_from_dimensions(world.width, world.height, filename) draw_temperature_levels(world, img, black_and_white) img.complete()
def draw_permeability_on_file(world, filename): img = PNGWriter.rgba_from_dimensions(world.width, world.height, filename) draw_permeability(world, img) img.complete()
def draw_simple_elevation_on_file(world, filename, sea_level): img = PNGWriter.rgba_from_dimensions(world.width, world.height, filename) draw_simple_elevation(world, sea_level, img) img.complete()