def lerp_color(cold, hot, t):
    """
    Linearly interpolates between two colors

    Arguments:
    color1 - RGB tuple representing a color
    color2 - RGB tuple representing a color
    t - float between 0 and 1
    """
    r1, g1, b1 = cold
    r2, g2, b2 = hot
    r = int(r1 + (r2 - r1) * t)
    g = int(g1 + (g2 - g1) * t)
    b = int(b1 + (b2 - b1) * t)
    return (r, g, b)