On this page
matplotlib.colors.to_rgba
matplotlib.colors.to_rgba(c, alpha=None)-
Convert
cto an RGBA color.If
alphais notNone, it forces the alpha value, except ifcis “none” (case-insensitive), which always maps to(0, 0, 0, 0).
Examples using matplotlib.colors.to_rgba
© 2012–2017 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
http://matplotlib.org/2.1.0/api/_as_gen/matplotlib.colors.to_rgba.html