Пример #1
0
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()
Пример #2
0
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()
Пример #3
0
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()
Пример #4
0
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()
Пример #5
0
def draw_grayscale_heightmap_on_file(world, filename):
    img = PNGWriter.grayscale_from_array(world.layers['elevation'].data, filename, scale_to_range=True)
    img.complete()
Пример #6
0
def draw_riversmap_on_file(world, filename):
    img = PNGWriter.rgba_from_dimensions(world.width, world.height, filename)
    draw_riversmap(world, img)
    img.complete()
Пример #7
0
def draw_riversmap_on_file(world, filename):
    img = PNGWriter.rgba_from_dimensions(world.width, world.height, filename)
    draw_riversmap(world, img)
    img.complete()
Пример #8
0
def draw_icecaps_on_file(world, filename):
    img = PNGWriter.grayscale_from_array(world.layers["icecap"].data, filename, scale_to_range=True)
    img.complete()
Пример #9
0
def draw_scatter_plot_on_file(world, filename):
    img = PNGWriter.rgba_from_dimensions(512, 512, filename)
    draw_scatter_plot(world, 512, img)
    img.complete()
Пример #10
0
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()
Пример #11
0
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()
Пример #12
0
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()
Пример #13
0
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()
Пример #14
0
def draw_grayscale_heightmap_on_file(world, filename):
    img = PNGWriter.grayscale_from_array(world.layers['elevation'].data, filename, scale_to_range=True)
    img.complete()
Пример #15
0
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()
Пример #16
0
def draw_icecaps_on_file(world, filename):
    img = PNGWriter.grayscale_from_array(world.layers["icecap"].data, filename, scale_to_range=True)
    img.complete()
Пример #17
0
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()
Пример #18
0
def draw_permeability_on_file(world, filename):
    img = PNGWriter.rgba_from_dimensions(world.width, world.height, filename)
    draw_permeability(world, img)
    img.complete()
Пример #19
0
def draw_scatter_plot_on_file(world, filename):
    img = PNGWriter.rgba_from_dimensions(512, 512, filename)
    draw_scatter_plot(world, 512, img)
    img.complete()
Пример #20
0
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()
Пример #21
0
def draw_permeability_on_file(world, filename):
    img = PNGWriter.rgba_from_dimensions(world.width, world.height, filename)
    draw_permeability(world, img)
    img.complete()
Пример #22
0
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()