manim.mobject.geometry.DoubleArrow

class DoubleArrow(*args, **kwargs)[source]

Bases: manim.mobject.geometry.Arrow

An arrow with tips on both ends.

Parameters
  • args (Any) – Arguments to be passed to Arrow

  • kwargs (Any) – Additional arguments to be passed to Arrow

Examples

Example: DoubleArrowExample

../_images/DoubleArrowExample-1.png
from manim import *

from manim.mobject.geometry import ArrowCircleFilledTip
class DoubleArrowExample(Scene):
    def construct(self):
        circle = Circle(radius=2.0)
        d_arrow = DoubleArrow(start=circle.get_left(), end=circle.get_right())
        d_arrow_2 = DoubleArrow(tip_shape_end=ArrowCircleFilledTip, tip_shape_start=ArrowCircleFilledTip)
        group = Group(Group(circle, d_arrow), d_arrow_2).arrange(UP, buff=1)
        self.add(group)

Methods

Attributes

animate

Used to animate the application of a method.

depth

The depth of the mobject.

height

The height of the mobject.

width

The width of the mobject.