manim
manim copied to clipboard
Getting different results when applying a matrix to a ImageMobject vs a Rectangle
Description of bug / unexpected behavior
I have this code:
img = manim.ImageMobject("random_image.jpeg")
rect = manim.Rectangle(height=img.height, width=img.width)
img.move_to(rect)
img_with_frame = manim.Group(img, rect)
self.add(img_with_frame)
self.play(img_with_frame.animate.apply_matrix([[3/4, 0.5, 0], [1/3, 1, 0], [0, 0, 1]])) # random matrix
self.wait()
https://github.com/ManimCommunity/manim/assets/74025356/0a523673-a58c-4385-b34b-bbb910a1ff02
how do I fix this?