mirror of
https://github.com/3b1b/manim.git
synced 2025-07-27 20:12:24 +08:00
5 lines
120 B
Python
5 lines
120 B
Python
def updating_mobject_from_func(func):
|
|
mob = func()
|
|
mob.add_updater(lambda m: mob.become(func()))
|
|
return mob
|