- image_x = tile_x * self._tile_width + pixel_x
- image_y = tile_y * self._tile_height + pixel_y
- bitmap_x = tile_index_x * self._tile_width + pixel_x
- bitmap_y = tile_index_y * self._tile_height + pixel_y
- pixel_color = self._pixel_shader[
- self._bitmap[bitmap_x, bitmap_y]
- ]
- if not pixel_color["transparent"]:
- image.putpixel((image_x, image_y), pixel_color["rgb888"])
+ image_x = (tile_x * self._tile_width) + pixel_x
+ image_y = (tile_y * self._tile_height) + pixel_y
+ bitmap_x = (tile_index_x * self._tile_width) + pixel_x
+ bitmap_y = (tile_index_y * self._tile_height) + pixel_y
+ pixel_color = self._shade(self._bitmap[bitmap_x, bitmap_y])
+ image.putpixel((image_x, image_y), pixel_color)
+