Skip to content

Getting different results when applying a matrix to a ImageMobject vs a Rectangle #3559

Closed as duplicate of#2412
@Heidar-An

Description

@Heidar-An

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()
Image.mp4

how do I fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions