def get_pos_colors(image, x, y):
    """Get the color at a position or 0-vector, if the position is invalid."""
    if x > 0 and y > 0 and len(image) > y and len(image[0]) > x:
        return (image[y][x][0], image[y][x][1], image[y][x][2])
    else:
        return (0, 0, 0)