mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 22:13:30 +08:00
Began reanimating much of inventing math. Also there is DelayByOrder now, which is awesome
This commit is contained in:
@ -16,18 +16,15 @@ from script_wrapper import command_line_create_scene
|
||||
|
||||
class SampleScene(RearrangeEquation):
|
||||
def construct(self):
|
||||
start_terms = "a + b = c".split(" ")
|
||||
end_terms = "a = c - b + 0".split(" ")
|
||||
index_map = {
|
||||
0 : 0,
|
||||
1 : 3,
|
||||
2 : 4,
|
||||
3 : 1,
|
||||
4 : 2,
|
||||
}
|
||||
RearrangeEquation.construct(
|
||||
self, start_terms, end_terms, index_map
|
||||
)
|
||||
dot = Dot().shift(UP)
|
||||
self.add(dot)
|
||||
self.dither()
|
||||
self.animate(DelayByOrder(Transform(
|
||||
dot,
|
||||
Line(DOWN, UP)
|
||||
)))
|
||||
self.dither()
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user