# Path: albow/resource.py
# def get_image(*names, **kwds):
#     return _get_image(names, **kwds)


from pygame import Rect
from albow.resource import get_image


class ImageArray(object):

    def __init__(self, image, shape):
        self.image = image
        self.shape = shape
        if isinstance(shape, tuple):
            self.nrows, self.ncols = shape
        else:
            self.nrows = 1
            self.ncols = shape
        iwidth, iheight = image.get_size()
        self.size = iwidth // self.ncols, iheight // self.nrows

    def __len__(self):
        return self.shape

    def __getitem__(self, index):

# Path: albow/resource.py
# def get_image(*names, **kwds):
#     return _get_image(names, **kwds)


# Path: albow/image_array.py
from pygame import Rect
from albow.resource import get_image



class ImageArray(object):

    def __init__(self, image, shape):
        self.image = image
        self.shape = shape
        if isinstance(shape, tuple):
            self.nrows, self.ncols = shape
        else:
            self.nrows = 1
            self.ncols = shape
        iwidth, iheight = image.get_size()
        self.size = iwidth // self.ncols, iheight // self.nrows

    def __len__(self):
        return self.shape

    def __getitem__(self, index):

        image = self.image