Fix bug with clock

This commit is contained in:
Grant Sanderson 2020-03-27 12:04:30 -07:00
parent 7c0bf2c015
commit 8384b8b46b

View file

@ -392,13 +392,13 @@ class ClockPassesTime(Animation):
hour_radians = -self.hours_passed * 2 * np.pi / 12 hour_radians = -self.hours_passed * 2 * np.pi / 12
self.hour_rotation = Rotating( self.hour_rotation = Rotating(
clock.hour_hand, clock.hour_hand,
radians=hour_radians, angle=hour_radians,
**rot_kwargs **rot_kwargs
) )
self.hour_rotation.begin() self.hour_rotation.begin()
self.minute_rotation = Rotating( self.minute_rotation = Rotating(
clock.minute_hand, clock.minute_hand,
radians=12 * hour_radians, angle=12 * hour_radians,
**rot_kwargs **rot_kwargs
) )
self.minute_rotation.begin() self.minute_rotation.begin()