Skip to content

Commit 54bee27

Browse files
behacklnaveen521kk
andauthored
Fixed two minor issues of :class:.SpiralIn and :class:.ManimBanner (#2688)
* passed run_time argument to SpiralIn in ManimBanner.create * let SpiralIn respect rate_func * make SpiralIn an introducer Co-authored-by: Naveen M K <[email protected]>
1 parent bef8302 commit 54bee27

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

manim/animation/creation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,10 @@ def __init__(
459459
shape.move_to(shape.initial_position)
460460
shape.save_state()
461461

462-
super().__init__(shapes, **kwargs)
462+
super().__init__(shapes, introducer=True, **kwargs)
463463

464464
def interpolate_mobject(self, alpha: float) -> None:
465+
alpha = self.rate_func(alpha)
465466
for shape in self.shapes:
466467
shape.restore()
467468
shape.save_state()

manim/mobject/logo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def create(self, run_time: float = 2) -> AnimationGroup:
128128
An animation to be used in a :meth:`.Scene.play` call.
129129
"""
130130
return AnimationGroup(
131-
SpiralIn(self.shapes),
131+
SpiralIn(self.shapes, run_time=run_time),
132132
FadeIn(self.M, run_time=run_time / 2),
133133
lag_ratio=0.1,
134134
)

0 commit comments

Comments
 (0)