mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 11:03:03 +08:00
Remove usage of np.append
This commit is contained in:
@ -58,7 +58,7 @@ def color_to_int_rgb(color):
|
||||
|
||||
def color_to_int_rgba(color, opacity=1.0):
|
||||
alpha = int(255 * opacity)
|
||||
return np.append(color_to_int_rgb(color), alpha)
|
||||
return np.array([*color_to_int_rgb(color), alpha])
|
||||
|
||||
|
||||
def color_gradient(reference_colors, length_of_output):
|
||||
|
Reference in New Issue
Block a user