From 0cf31995789e8bfe3722e0183e2cf55ab92457e5 Mon Sep 17 00:00:00 2001 From: YishiMichael Date: Tue, 12 Apr 2022 11:26:19 +0800 Subject: [PATCH] Adjust return type --- manimlib/utils/color.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manimlib/utils/color.py b/manimlib/utils/color.py index 5ae235fd..1687d5b3 100644 --- a/manimlib/utils/color.py +++ b/manimlib/utils/color.py @@ -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: