mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Fix bug with clock
This commit is contained in:
parent
7c0bf2c015
commit
8384b8b46b
1 changed files with 2 additions and 2 deletions
|
@ -392,13 +392,13 @@ class ClockPassesTime(Animation):
|
|||
hour_radians = -self.hours_passed * 2 * np.pi / 12
|
||||
self.hour_rotation = Rotating(
|
||||
clock.hour_hand,
|
||||
radians=hour_radians,
|
||||
angle=hour_radians,
|
||||
**rot_kwargs
|
||||
)
|
||||
self.hour_rotation.begin()
|
||||
self.minute_rotation = Rotating(
|
||||
clock.minute_hand,
|
||||
radians=12 * hour_radians,
|
||||
angle=12 * hour_radians,
|
||||
**rot_kwargs
|
||||
)
|
||||
self.minute_rotation.begin()
|
||||
|
|
Loading…
Add table
Reference in a new issue