manim.mobject.geometry.Triangle

class Triangle(**kwargs)[source]

Bases: manim.mobject.geometry.RegularPolygon

An equilateral triangle.

Parameters

kwargs (Any) – Additional arguments to be passed to RegularPolygon

Examples

Example: TriangleExample

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

class TriangleExample(Scene):
    def construct(self):
        triangle_1 = Triangle()
        triangle_2 = Triangle().scale(2).rotate(60*DEGREES)
        tri_group = Group(triangle_1, triangle_2).arrange(buff=1)
        self.add(tri_group)

Methods

Attributes

animate

Used to animate the application of a method.

animation_overrides

depth

The depth of the mobject.

height

The height of the mobject.

width

The width of the mobject.