mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
fix: fix ImageMobject by overriding set_color method
This commit is contained in:
parent
9d7db7aacd
commit
55684af27d
1 changed files with 3 additions and 0 deletions
|
@ -48,6 +48,9 @@ class ImageMobject(Mobject):
|
|||
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]
|
||||
|
|
Loading…
Add table
Reference in a new issue