def get_colour(temperature: float) -> tuple[float, float, float, float]:
    """Get colour from temperature.

    Args:
        temperature (float): Temperature in range [-1, 1]
    Return
        tuple: RGBA tuple
    """
    # blending constant
    colour_blend = 0.85
    alpha_blend = 0.9

    # if temperature < 0, the colour is blue
    if temperature < 0:
        channel = -temperature * colour_blend + (1 - colour_blend)
        alpha = -temperature * alpha_blend + (1 - alpha_blend)
        return (0, 0, channel, alpha)

    # otherwise, the colour is red
    channel = temperature * colour_blend + (1 - colour_blend)
    alpha = temperature * alpha_blend + (1 - alpha_blend)
    return (channel, 0, 0, alpha)