예제 #1
0
 def test_draw_precipitation(self):
     w = World.open_protobuf("%s/seed_28070.world" % self.tests_data_dir)
     target = PNGWriter.rgba_from_dimensions(w.width, w.height)
     draw_precipitation(w, target)
     self._assert_img_equal("precipitation_28070", target)
예제 #2
0
 def test_draw_precipitation(self):
     w = World.open_protobuf("%s/seed_28070.world" % self.tests_data_dir)
     target = PixelCollector(w.width, w.height)
     draw_precipitation(w, target)
     self._assert_img_equal("precipitation_28070", target)
예제 #3
0
 def test_draw_precipitation(self):
     w = World.open_protobuf("%s/seed_28070.world" % self.tests_data_dir)
     target = PNGWriter.rgba_from_dimensions(w.width, w.height)
     draw_precipitation(w, target)
     self._assert_img_equal("precipitation_28070", target)
예제 #4
0
 def test_draw_precipitation(self):
     w = World.open_protobuf("%s/seed_28070.world" % self.tests_data_dir)
     target = PixelCollector(w.width, w.height)
     draw_precipitation(w, target)
     self._assert_img_equal("precipitation_28070", target)