Change color_to_hex implementation

This commit is contained in:
Grant Sanderson 2022-12-19 18:03:53 -08:00
parent 073a62bf03
commit 75a98a8936

View file

@ -63,7 +63,7 @@ def color_to_int_rgba(color: ManimColor, opacity: float = 1.0) -> np.ndarray[int
def color_to_hex(color: ManimColor) -> str:
return rgb_to_hex(color_to_rgb(color))
return Color(color).hex.upper()
def hex_to_int(rgb_hex: str) -> int: