matplotlib.colors.to_hex#
- matplotlib.colors.to_hex(c, keep_alpha=False)[Quelle]#
Konvertiert c in eine Hex-Farbe.
- Parameter:
- cFarbe oder
numpy.ma.masked - keep_alphabool, Standard: False
Wenn False, wird das Format
#rrggbbverwendet, andernfalls#rrggbbaa.
- cFarbe oder
- Gibt zurück:
- str
#rrggbboder#rrggbbaaHex-Farbstring