manim.mobject.geometry.Elbow

class Elbow(width=0.2, angle=0, **kwargs)[source]

Bases: manim.mobject.types.vectorized_mobject.VMobject

Two lines that create a right angle about each other: L-shape.

Parameters
  • width (float, optional) – The length of the elbow’s sides.

  • angle (float, optional) – The rotation of the elbow.

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

Examples

Example: ElbowExample

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

class ElbowExample(Scene):
    def construct(self):
        elbow_1 = Elbow()
        elbow_2 = Elbow(width=2.0)
        elbow_3 = Elbow(width=2.0, angle=5*PI/4)

        elbow_group = Group(elbow_1, elbow_2, elbow_3).arrange(buff=1)
        self.add(elbow_group)

See also

RightAngle

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.