- pixel_color = self._pixel_shader[self._bitmap[bitmap_x, bitmap_y]]
- image.putpixel((image_x, image_y), pixel_color["rgb888"])
-
+ 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"])
+
+ # Apply transforms here
+ if self._tile_width == 6:
+ print("Putting at {}".format((self._x, self._y)))