mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Fix multi-color setting
This commit is contained in:
parent
97789fff35
commit
d01658bc5b
1 changed files with 1 additions and 1 deletions
|
@ -1264,7 +1264,7 @@ class Mobject(object):
|
|||
if color is not None:
|
||||
if isinstance(color, list):
|
||||
rgbs = np.array(list(map(color_to_rgb, color)))
|
||||
resize_with_interpolation(rgbs, len(data))
|
||||
rgbs = resize_with_interpolation(rgbs, len(data))
|
||||
else:
|
||||
rgbs = color_to_rgb(color)
|
||||
data[name][:, :3] = rgbs
|
||||
|
|
Loading…
Add table
Reference in a new issue