def getColors(surface):
    """Returns a list of all different colors in a surface"""
    surface = surface.copy()
    w, h = surface.get_size()
    colors = []
    for x in range(w):
        for y in range(h):
            color = surface.get_at((x, y))[:3]
            if not color in colors:
                colors.append(color)
    return tuple(colors)