Version 3.0.2
matplotlib

matplotlib.colors.to_rgb

matplotlib.colors.to_rgb(c)[source]

Convert c to an RGB color, silently dropping the alpha channel.