(pixel)
return pixel[0] // 256, pixel[1] // 256
Transform pixel to tile coordinates
Transform pixel to tile coordinates
Transform pixel to tile coordinates
def pixel_to_tile(pixel):
        """Transform pixel to tile coordinates"""
        return pixel[0] // 256, pixel[1] // 256
def pixel_to_tile ( pixel ) : return pixel [ 0 ] // 256 , pixel [ 1 ] // 256