class Circumscribe(mobject, shape=<class 'manim.mobject.geometry.Rectangle'>, fade_in=False, fade_out=False, time_width=0.3, buff=0.1, color='#FFFF00', run_time=1, stroke_width=4, **kwargs)[source]

Bases: manim.animation.composition.Succession

Draw a temporary line surrounding the mobject.

  • mobject (manim.mobject.mobject.Mobject) – The mobject to be circumscribed.

  • shape (Type) – The shape with which to surrond the given mobject. Should be either Rectangle or Circle

  • fade_in – Whether to make the surrounding shape to fade in. It will be drawn otherwise.

  • fade_out – Whether to make the surrounding shape to fade out. It will be undrawn otherwise.

  • time_width – The time_width of the drawing and undrawing. Gets ignored if either fade_in or fade_out is True.

  • buff (float) – The distance between the surrounding shape and the given mobject.

  • color (colour.Color) – The color of the surrounding shape.

  • run_time – The duration of the entire animation.

  • kwargs (Any) – Additional arguments to be passed to the Succession constructor


Example: UsingCircumscribe

from manim import *

class UsingCircumscribe(Scene):
    def construct(self):
        lbl = Tex(r"Circum-\\scribe").scale(2)
        self.add(lbl), Circle)), fade_out=True)), time_width=2)), Circle, True))