Questions tagged [algorithm-animation]

Related to the graphical/visual animation of algorithms, and code augmentations required for this purpose

Related to the graphical/visual animation of algorithms, and code augmentations required for this purpose

22 questions
5
votes
1 answer

Weighted Edges in Manim NetworkX Graph

Currently trying to display the edge weights from a network x graph in Manim, here is my current code: from manim import * import networkx as nx class Run(Scene): def construct(self): G = nx.Graph() G.add_nodes_from([node for…
3
votes
4 answers

How to put text inside a rectangle in Manim Community

this is the thing I wanted to make I'm very new to manim I'm trying to put the text inside a rectangle like given in the image How can I do that ?? :(
3
votes
2 answers

Is it possible to run multiple animations with an overall rate_func?

The following is my current code: from manimlib.imports import * class ClockOrganization(VGroup): CONFIG = { "numbers" : 4, "radius" : 3.1, "color" : WHITE } def __init__(self, **kwargs): digest_config(self, kwargs,…
2
votes
2 answers

Sort Algorithm Visualization: How to pull values to animate the canvas, from inside a tight loop

I am working on a visualization of different sorting algorithms using the height of different bars with tkinter. I have been able to shuffle the bars and also sort them after some help. The problem I am having now is slowing the sorting of the bars…
2
votes
1 answer

How to swap two objects' positions on a tkinter canvas

I am working on a sorting visualization program with tkinter using the height of different rectangles. I was able to randomize the height of each rectangle, but now I am stuck trying to figure out how to switch the position of two rectangles with…
1
vote
0 answers

Manim - semi-transparent sphere doesn't cover lines

I'm trying to animate a trajectory of a particle on a spherical surface in manim. I made the sphere semi-transparent so it's easy to say when the particle is on the front side and when it is on the back side of the sphere. However after I plot the…
Dio
  • 111
  • 2
1
vote
1 answer

How can I use tkinter to make an animation?

As part of an assignment I have to implement a reinforcement learning algorithm. I started by designing some visualisation for myself so that once I actually start implementing the algorithm, I can tell what is happening. I want to use Tkinter…
L. vd Hurk
  • 11
  • 4
1
vote
0 answers

Mobject position not updating in "MANIM" after the animation is done

When I'm animating using self.play(mobject.animate.move_to()) the object in the screen is moving but what I've observed is that the values are not updating to the new position How can I do that
1
vote
1 answer

How to make a dashed rectangle with consistent spacing in manim?

How to create a dashed rectangle with equally spaced dashes on both edges in manim? I've tried inheriting from Rectangle and adding dashes the same way as it is implemented for DashedLine but it produces very different densities on the longer and…
krassowski
  • 13,598
  • 4
  • 60
  • 92
0
votes
0 answers

Unable to Animate Bubble Sort Visualizer

I'm working on a Bubble Sort Visualizer going from smallest to greatest. The bubble sorting algorithm works but I can't get it to animate. What I've done is to send the actual array to a function so as to sort it. As its being sorted, I push to…
0
votes
1 answer

fix long text and distorted Text in manim

I have a long text in manim and it renderes very distorted. in fact, it not readable when it renders. can you fix it please # fast test for manim from manim import * from manim_ml.neural_network.layers import FeedForwardLayer from…
CSe
  • 51
  • 4
0
votes
1 answer

How to create a table with empty cells?

When using Manim, how to create a table such that in the first row there are letters of the word "HELLO", and in the second row there are empty cells? Python code: t3 = Table( [["H", "E", "L", "L", "O"], [" ", " ", " ", " ", " "]],…
0
votes
1 answer

Manim MathTex is not giving right output for differential equation

So i want to output of the differential equation as shown but i am not getting the correct equation as output i have tried the latex code as well but still not working from manim import * class CreateCircle(Scene): def construct(self): …
0
votes
2 answers

How to apply two tranformations one after the other in manimce?

I wanted to apply two linear transformations with matrices one after the other in manimce. Here is the code for one transformation: from manim import * class LT(LinearTransformationScene): def __init__(self): …
Sophile
  • 287
  • 3
  • 16
0
votes
2 answers

How can I animate simultaneously all the graph points inside Manim?

I made this class : 50 points of a spiral change to a cirle. But the animation is sequential and I would like to start it at the same time. class SpiralToCircle(Scene): def construct(self): vertices1 = range(50) vertices2 =…
fransua
  • 501
  • 2
  • 18
1
2