Skip to content

Commit

Permalink
Merge pull request #1791 from 3b1b/fix_image_mobject
Browse files Browse the repository at this point in the history
Fix `ImageMobject` by overriding `set_color` method
  • Loading branch information
3b1b authored Apr 12, 2022
2 parents 859680d + 55684af commit 845ee83
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 845ee83

Please sign in to comment.