Triangle#

Qualified name: manim.mobject.geometry.polygram.Triangle

class Triangle(**kwargs)[source]#

Bases: RegularPolygon

An equilateral triangle.

Parameters

kwargs – 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 any method of self.

animation_overrides

color

depth

The depth of the mobject.

fill_color

If there are multiple colors (for gradient) this returns the first one

height

The height of the mobject.

n_points_per_curve

sheen_factor

stroke_color

width

The width of the mobject.