mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Adjust return type
This commit is contained in:
parent
f307c2a298
commit
0cf3199578
1 changed files with 2 additions and 2 deletions
|
@ -43,8 +43,8 @@ def rgb_to_hex(rgb: Iterable[float]) -> str:
|
|||
return rgb2hex(rgb, force_long=True).upper()
|
||||
|
||||
|
||||
def hex_to_rgb(hex_code: str) -> tuple[float]:
|
||||
return hex2rgb(hex_code)
|
||||
def hex_to_rgb(hex_code: str) -> np.ndarray:
|
||||
return np.array(hex2rgb(hex_code))
|
||||
|
||||
|
||||
def invert_color(color: ManimColor) -> Color:
|
||||
|
|
Loading…
Add table
Reference in a new issue