(self, width)
Simple generator for iterating tiles in an image
Simple generator for iterating tiles in an image
Simple generator for iterating tiles in an image
def pos2D_iterator(self, width):
        """Simple generator for iterating tiles in an image"""
        y = 0
        while True:
            for x in range(0, width, self.edge):
                yield (x, y)
            y += self.edge
def pos2D_iterator ( self , width ) : y = 0 while True : for x in range ( 0 , width , self . edge ) : yield ( x , y ) y += self . edge