Skip to content

Commit

Permalink
fix: fix ImageMobject by overriding set_color method
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCrane committed Apr 12, 2022
1 parent 9d7db7a commit 55684af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manimlib/mobject/types/image_mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def set_opacity(self, opacity: float, recurse: bool = True):
mob.data["opacity"] = np.array([[o] for o in listify(opacity)])
return self

def set_color(self, color, opacity=None, recurse=None):
return self

def point_to_rgb(self, point: np.ndarray) -> np.ndarray:
x0, y0 = self.get_corner(UL)[:2]
x1, y1 = self.get_corner(DR)[:2]
Expand Down

0 comments on commit 55684af

Please sign in to comment.