Began reanimating much of inventing math. Also there is DelayByOrder now, which is awesome

This commit is contained in:
Grant Sanderson
2015-08-08 20:42:34 -07:00
parent 5b228ba8da
commit afdb7554ef
5 changed files with 188 additions and 92 deletions

View File

@ -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()