Sector¶
Qualified name: manim.mobject.geometry.arc.Sector
- class Sector(radius=1, **kwargs)[source]¶
Bases:
AnnularSectorA sector of a circle.
Examples
Example: ExampleSector ¶
from manim import * class ExampleSector(Scene): def construct(self): sector = Sector(radius=2) sector2 = Sector(radius=2.5, angle=60*DEGREES).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(radius=2) sector2 = Sector(radius=2.5, angle=60*DEGREES).move_to([-3, 0, 0]) sector.set_color(RED) sector2.set_color(PINK) self.add(sector, sector2)Methods
Attributes
alwaysCall a method on a mobject every frame.
animateUsed to animate the application of any method of
self.animation_overridescolordepthThe depth of the mobject.
fill_colorIf there are multiple colors (for gradient) this returns the first one
heightThe height of the mobject.
n_points_per_curvesheen_factorstroke_colorwidthThe width of the mobject.
- Parameters:
radius (float)
kwargs (Any)
- _original__init__(radius=1, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
radius (float)
kwargs (Any)
- Return type:
None