Blink¶
Qualified name: manim.animation.indication.Blink
- class Blink(mobject=None, *args, use_override=True, **kwargs)[source]¶
Bases:
Succession
Blink the mobject.
- Parameters:
mobject (Mobject) – The mobject to be blinked.
time_on (float) – The duration that the mobject is shown for one blink.
time_off (float) – The duration that the mobject is hidden for one blink.
blinks (int) – The number of blinks
hide_at_end (bool) – Whether to hide the mobject at the end of the animation.
kwargs – Additional arguments to be passed to the
Succession
constructor.
Examples
Example: BlinkingExample ¶
from manim import * class BlinkingExample(Scene): def construct(self): text = Text("Blinking").scale(1.5) self.add(text) self.play(Blink(text, blinks=3))
class BlinkingExample(Scene): def construct(self): text = Text("Blinking").scale(1.5) self.add(text) self.play(Blink(text, blinks=3))
Methods
Attributes
run_time