扇区

全限定名称: manim.mobject.geometry.arc.Sector

class Sector(radius=1, **kwargs)[source]

基类: AnnularSector

圆的一个扇区。

示例

示例: ExampleSector

../_images/ExampleSector-1.png
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)

方法

属性

animate (动画)

用于动画化 self 的任何方法的应用。

animation_overrides (动画覆盖)

颜色

depth (深度)

mobject 的深度。

fill_color (填充颜色)

如果存在多种颜色(用于渐变),则返回第一种颜色

height (高度)

mobject 的高度。

n_points_per_curve (每条曲线的点数)

sheen_factor (光泽因子)

stroke_color (描边颜色)

width (宽度)

mobject 的宽度。

参数:
  • radius (float)

  • kwargs (Any)

_original__init__(radius=1, **kwargs)

初始化自身。有关准确签名,请参阅 help(type(self))。

参数:
  • radius (float)

  • kwargs (Any)

返回类型: