Beispiel #1
0
 def test_draw_grayscale_heightmap(self):
     w = World.open_protobuf("%s/seed_28070.world" % self.tests_data_dir)
     target = PNGWriter.grayscale_from_array(w.layers['elevation'].data,
                                             scale_to_range=True)
     self._assert_img_equal("grayscale_heightmap_28070", target)
Beispiel #2
0
def draw_icecaps_on_file(world, filename):
    img = PNGWriter.grayscale_from_array(world.icecap, filename, scale_to_range=True)
    img.complete()
Beispiel #3
0
 def test_draw_grayscale_heightmap(self):
     w = World.open_protobuf("%s/seed_28070.world" % self.tests_data_dir)
     target = PNGWriter.grayscale_from_array(w.layers['elevation'].data, scale_to_range=True)
     self._assert_img_equal("grayscale_heightmap_28070", target)
Beispiel #4
0
def draw_grayscale_heightmap_on_file(world, filename):
    img = PNGWriter.grayscale_from_array(world.elevation['data'], filename, scale_to_range=True)
    #draw_grayscale_heightmap(world, img)
    img.complete()
Beispiel #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()