matplotlib.colors.to_rgba
-
matplotlib.colors.to_rgba(c, alpha=None)
-
Convert
c
to an RGBA color.If
alpha
is notNone
, it forces the alpha value, except ifc
is “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