Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect ImageMobject Content #2145

Open
Sourish07 opened this issue Jul 16, 2024 · 0 comments
Open

Incorrect ImageMobject Content #2145

Sourish07 opened this issue Jul 16, 2024 · 0 comments
Labels

Comments

@Sourish07
Copy link

Describe the bug

When I create a large number of ImageMobjects, some of them get incorrectly set to another ImageMobject's image. There should be 35 green checkmarks & 7 red crosses. However, one of the green checkmarks is replaced by the 8th cross.

Code:

from manimlib import *

# Files: green.png, red.png in same folder as this script

class MyScene(Scene):
    def construct(self):
        nodes = [ImageMobject(f"./green.png") for i in range(35)] + [ImageMobject(f"./red.png") for i in range(7)]
        network = Group(*nodes).arrange_in_grid().scale(0.2)
        self.add(network)

Wrong display or Error traceback:
image

Additional context

When I run this code on my laptop, I still get the wrong amount of each picture, but the incorrect one is in a different spot in the grid.
image_2024-07-16_02-54-07

@Sourish07 Sourish07 added the bug label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant