def _pseudo_alpha(rgb, opacity):
    """

    Given an RGB value in [0, 1], return a new RGB value which blends in a
    certain amount of white to create a fake alpha effect. This allosws us to
    produce an alpha-like effect in EPS, which doesn't support transparency.

    """
    return tuple((value * opacity - opacity + 1 for value in rgb))