def interpolate(color1, color2, mix):
    """Interpolate between color1 and color2."""
    r = (color1[0] * (1.0 - mix)) + (color2[0] * mix)
    g = (color1[1] * (1.0 - mix)) + (color2[1] * mix)
    b = (color1[2] * (1.0 - mix)) + (color2[2] * mix)
    return (int(r), int(g), int(b))