manim.mobject.geometry.Sector

class Sector(outer_radius=1, inner_radius=0, **kwargs)[source]

Bases: manim.mobject.geometry.AnnularSector

Examples

Example: ExampleSector

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

class ExampleSector(Scene):
    def construct(self):
        sector = Sector(outer_radius=2, inner_radius=1)
        sector2 = Sector(outer_radius=2.5, inner_radius=0.8).move_to([-3, 0, 0])
        sector.set_color(RED)
        sector2.set_color(PINK)
        self.add(sector, sector2)

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.