def adjust ( cols , light ) : raw_colors = [ cols [ 0 ] , * cols , "#FFFFFF" , "#000000" , * cols , "#FFFFFF" ] return colors . generic_adjust ( raw_colors , light )
coolwarm python color palette
Create palette .
def adjust(cols, light):
    """Create palette."""
    raw_colors = [cols[0], *cols, "#FFFFFF",
                  "#000000", *cols, "#FFFFFF"]

    return colors.generic_adjust(raw_colors, light)