from typing import OrderedDict


def _color_bool(series, color, bg_color):
    """Converts a boolean annotation column to colors."""

    color_map = OrderedDict(zip([True, False], [color, bg_color]))
    mapped = series.map(color_map).fillna(bg_color)

    return mapped, color_map