mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Change color_to_hex implementation
This commit is contained in:
parent
073a62bf03
commit
75a98a8936
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue