DrawBorderThenFill¶
Qualified name: manim.animation.creation.DrawBorderThenFill
- class DrawBorderThenFill(mobject=None, *args, use_override=True, **kwargs)[source]¶
Bases:
AnimationDraw the border first and then show the fill.
Examples
Example: ShowDrawBorderThenFill ¶
from manim import * class ShowDrawBorderThenFill(Scene): def construct(self): self.play(DrawBorderThenFill(Square(fill_opacity=1, fill_color=ORANGE)))
class ShowDrawBorderThenFill(Scene): def construct(self): self.play(DrawBorderThenFill(Square(fill_opacity=1, fill_color=ORANGE)))Methods
Begin the animation.
Get all mobjects involved in the animation.
get_outlineget_stroke_colorinterpolate_submobjectAttributes
run_time- Parameters:
vmobject (VMobject | OpenGLVMobject)
run_time (float)
rate_func (Callable[[float], float])
stroke_width (float)
stroke_color (str)
introducer (bool)
- _original__init__(vmobject, run_time=2, rate_func=<function double_smooth>, stroke_width=2, stroke_color=None, introducer=True, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
vmobject (VMobject | OpenGLVMobject)
run_time (float)
rate_func (Callable[[float], float])
stroke_width (float)
stroke_color (str)
introducer (bool)
- Return type:
None