mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Removed axes config from Rotating animation
This commit is contained in:
parent
8dd42af2e9
commit
82905e38bd
1 changed files with 4 additions and 4 deletions
|
@ -12,20 +12,19 @@ from transform import Transform
|
|||
|
||||
class Rotating(Animation):
|
||||
CONFIG = {
|
||||
"axes" : [],
|
||||
"axis" : OUT,
|
||||
"radians" : 2*np.pi,
|
||||
"run_time" : 5,
|
||||
"rate_func" : None,
|
||||
"in_place" : True,
|
||||
"about_point" : None,
|
||||
"about_edge" : None,
|
||||
}
|
||||
def update_submobject(self, submobject, starting_submobject, alpha):
|
||||
submobject.points = np.array(starting_submobject.points)
|
||||
|
||||
def update_mobject(self, alpha):
|
||||
Animation.update_mobject(self, alpha)
|
||||
axes = self.axes if self.axes else [self.axis]
|
||||
about_point = None
|
||||
if self.about_point is not None:
|
||||
about_point = self.about_point
|
||||
|
@ -33,8 +32,9 @@ class Rotating(Animation):
|
|||
self.about_point = self.mobject.get_center()
|
||||
self.mobject.rotate(
|
||||
alpha*self.radians,
|
||||
axes = axes,
|
||||
about_point = self.about_point
|
||||
axis = self.axis,
|
||||
about_point = self.about_point,
|
||||
about_edge = self.about_edge,
|
||||
)
|
||||
|
||||
class ShowPartial(Animation):
|
||||
|
|
Loading…
Add table
Reference in a new issue