Adjust return type

This commit is contained in:
YishiMichael 2022-04-12 11:26:19 +08:00
parent f307c2a298
commit 0cf3199578
No known key found for this signature in database
GPG key ID: EC615C0C5A86BC80

View file

@ -43,8 +43,8 @@ def rgb_to_hex(rgb: Iterable[float]) -> str:
return rgb2hex(rgb, force_long=True).upper() return rgb2hex(rgb, force_long=True).upper()
def hex_to_rgb(hex_code: str) -> tuple[float]: def hex_to_rgb(hex_code: str) -> np.ndarray:
return hex2rgb(hex_code) return np.array(hex2rgb(hex_code))
def invert_color(color: ManimColor) -> Color: def invert_color(color: ManimColor) -> Color: