Tile.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:cps2-gfx-editor 作者: goosechooser 项目源码 文件源码
def unpack(self):
        """Unpacks a 4bpp planar tile.

        Returns a byte() of pixel values.
        """
        tile_fmt = Struct(32 * 'c')
        tile_iter = tile_fmt.iter_unpack(self._tile_data)

        tiles = [self._bitplanes_to_tile(b''.join(tile)) for tile in tile_iter]
        return b''.join(tiles)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号