Sector#

Qualified name: manim.mobject.geometry.arc.Sector

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

Bases: AnnularSector

A sector of a circle.

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)
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 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.

Parameters:
  • outer_radius (float) –

  • inner_radius (float) –

_original__init__(outer_radius=1, inner_radius=0, **kwargs)#

Initialize self. See help(type(self)) for accurate signature.

Parameters:
  • outer_radius (float) –

  • inner_radius (float) –

Return type:

None