manim.animation.creation.DrawBorderThenFill

class DrawBorderThenFill(vmobject, run_time=2, rate_func=<function double_smooth>, stroke_width=2, stroke_color=None, draw_border_animation_config={}, fill_animation_config={}, **kwargs)[source]

Bases: manim.animation.animation.Animation

Draw 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)))

Methods

begin

get_all_mobjects

Ordering must match the ordering of arguments to interpolate_submobject

get_outline

get_stroke_color

interpolate_submobject

Parameters
  • vmobject (Union[manim.mobject.types.vectorized_mobject.VMobject, manim.mobject.types.opengl_vectorized_mobject.OpenGLVMobject]) –

  • run_time (float) –

  • rate_func (Callable[[float], float]) –

  • stroke_width (float) –

  • stroke_color (str) –

  • draw_border_animation_config (Dict) –

  • fill_animation_config (Dict) –

Return type

None

get_all_mobjects()[source]

Ordering must match the ordering of arguments to interpolate_submobject

Return type

List[Optional[manim.mobject.mobject.Mobject]]