Skip to content

Commit 55684af

Browse files
committed
fix: fix ImageMobject by overriding set_color method
1 parent 9d7db7a commit 55684af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

manimlib/mobject/types/image_mobject.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ def set_opacity(self, opacity: float, recurse: bool = True):
4848
mob.data["opacity"] = np.array([[o] for o in listify(opacity)])
4949
return self
5050

51+
def set_color(self, color, opacity=None, recurse=None):
52+
return self
53+
5154
def point_to_rgb(self, point: np.ndarray) -> np.ndarray:
5255
x0, y0 = self.get_corner(UL)[:2]
5356
x1, y1 = self.get_corner(DR)[:2]

0 commit comments

Comments
 (0)