Skip to content

Commit e4b1d10

Browse files
Rename misleading function dot_position to update_label in .add_updater() example (#4196)
Co-authored-by: Francisco Manríquez Novoa <[email protected]>
1 parent 204e44a commit e4b1d10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manim/mobject/mobject.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,13 +1002,13 @@ def add_updater(
10021002
10031003
class NextToUpdater(Scene):
10041004
def construct(self):
1005-
def dot_position(mobject):
1005+
def update_label(mobject):
10061006
mobject.set_value(dot.get_center()[0])
10071007
mobject.next_to(dot)
10081008
10091009
dot = Dot(RIGHT*3)
10101010
label = DecimalNumber()
1011-
label.add_updater(dot_position)
1011+
label.add_updater(update_label)
10121012
self.add(dot, label)
10131013
10141014
self.play(Rotating(dot, about_point=ORIGIN, angle=TAU, run_time=TAU, rate_func=linear))

0 commit comments

Comments
 (0)