

def show_sprites(sprs):
    ENDC = '\x1b[0m'
    length = sprite.length(sprs)
    tiles = []
    for i in range(length):
        spr = get_printable_sprite(sprite.get_sprite(i, sprs))
        tiles.append(spr)
        if ((len(tiles) % 8) == 0):
            out = ''
            for t in tiles:
                for l in i:
                    out += (l + ENDC)
                out += '\n'
            tiles = []
            print(out)

dataset/ETHPy150Open gutomaia/pyNES/pynes/tests/__init__.py show_sprites/VarMisuse@89/112 `t`->`i`