Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions manim/mobject/mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,11 +968,11 @@ def dot_position(mobject):

class DtUpdater(Scene):
def construct(self):
line = Square()
square = Square()

#Let the line rotate 90° per second
line.add_updater(lambda mobject, dt: mobject.rotate(dt*90*DEGREES))
self.add(line)
#Let the square rotate 90° per second
square.add_updater(lambda mobject, dt: mobject.rotate(dt*90*DEGREES))
self.add(square)
self.wait(2)

See also
Expand Down