You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
frommanimlibimport*# Files: green.png, red.png in same folder as this scriptclassMyScene(Scene):
defconstruct(self):
nodes= [ImageMobject(f"./green.png") foriinrange(35)] + [ImageMobject(f"./red.png") foriinrange(7)]
network=Group(*nodes).arrange_in_grid().scale(0.2)
self.add(network)
Wrong display or Error traceback:
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.
The text was updated successfully, but these errors were encountered:
it's working correctly on my Mac using the code below:
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)
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:
Wrong display or Error traceback:
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.
The text was updated successfully, but these errors were encountered: