Skip to content

Commit 845ee83

Browse files
authored
Merge pull request #1791 from 3b1b/fix_image_mobject
Fix `ImageMobject` by overriding `set_color` method
2 parents 859680d + 55684af commit 845ee83

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)